w1-w1-gpio-use-dev_get_platdata.patch removed from -mm tree
Subject: [merged] w1-w1-gpio-use-dev_get_platdata.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 15 Nov 2013 12:09:11 -0800
The patch titled
Subject: drivers/w1/masters/w1-gpio.c: use dev_get_platdata()
has been removed from the -mm tree. Its filename was
w1-w1-gpio-use-dev_get_platdata.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Jingoo Han <[email protected]>
Subject: drivers/w1/masters/w1-gpio.c: 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.
---
drivers/w1/masters/w1-gpio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/w1/masters/w1-gpio.c renamed from drivers/w1/masters/w1-gpio.c~w1-w1-gpio-use-dev_get_platdata +5 -5
@@ -56,7 +56,7 @@ MODULE_DEVICE_TABLE(of, w1_gpio_dt_ids);static int w1_gpio_probe_dt (struct platform_device *pdev) { -struct w1_gpio_platform_data *pdata = pdev->dev.platform_data; +struct w1_gpio_platform_data *pdata =dev_get_platdata (&pdev->dev);struct device_node *np = pdev->dev.of_node;int gpio;
@@ -92,7 +92,7 @@ static int w1_gpio_probe(struct platform } } - pdata = pdev->dev.platform_data; + pdata =dev_get_platdata (&pdev->dev);if (!pdata) {dev_err (&pdev->dev,"No configuration data\n" );
@@ -154,7 +154,7 @@ static int w1_gpio_probe(struct platformstatic int w1_gpio_remove (struct platform_device *pdev) {struct w1_bus_master *master =platform_get_drvdata (pdev); -struct w1_gpio_platform_data *pdata = pdev->dev.platform_data; +struct w1_gpio_platform_data *pdata =dev_get_platdata (&pdev->dev);if (pdata->enable_external_pullup) pdata->enable_external_pullup (0 );
@@ -171,7 +171,7 @@ static int w1_gpio_remove(struct platforstatic int w1_gpio_suspend (struct platform_device *pdev,pm_message_t state) { -struct w1_gpio_platform_data *pdata = pdev->dev.platform_data; +struct w1_gpio_platform_data *pdata =dev_get_platdata (&pdev->dev);if (pdata->enable_external_pullup) pdata->enable_external_pullup (0 );
@@ -181,7 +181,7 @@ static int w1_gpio_suspend(struct platfostatic int w1_gpio_resume (struct platform_device *pdev) { -struct w1_gpio_platform_data *pdata = pdev->dev.platform_data; +struct w1_gpio_platform_data *pdata =dev_get_platdata (&pdev->dev);if (pdata->enable_external_pullup) pdata->enable_external_pullup (1 );
_
Patches currently in -mm which might be from [email protected] are
origin.patch drivers-block-sx8c-use-module_pci_driver.patch drivers-block-sx8c-remove-unnecessary-pci_set_drvdata.patch linux-next.patch