Input: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. This is a cosmetic change to make the code simpler and enhance the readability. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Este cometimento está contido em:

cometido por
Dmitry Torokhov

ascendente
54f05e9513
cometimento
c838cb3d47
@@ -71,7 +71,7 @@ static int adp5520_keys_notifier(struct notifier_block *nb,
|
||||
|
||||
static int adp5520_keys_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct adp5520_keys_platform_data *pdata = pdev->dev.platform_data;
|
||||
struct adp5520_keys_platform_data *pdata = dev_get_platdata(&pdev->dev);
|
||||
struct input_dev *input;
|
||||
struct adp5520_keys *dev;
|
||||
int ret, i;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador