You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Dmitry Torokhov
parent
54f05e9513
commit
c838cb3d47
@@ -48,7 +48,7 @@ static void gpio_mouse_scan(struct input_polled_dev *dev)
|
||||
|
||||
static int gpio_mouse_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct gpio_mouse_platform_data *pdata = pdev->dev.platform_data;
|
||||
struct gpio_mouse_platform_data *pdata = dev_get_platdata(&pdev->dev);
|
||||
struct input_polled_dev *input_poll;
|
||||
struct input_dev *input;
|
||||
int pin, i;
|
||||
|
||||
Reference in New Issue
Block a user