mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Staging: iio: light: tsl2x7x_core: use dev_get_platdata()
@ 2015-11-23 17:48 Nizam Haider
  2015-11-29 15:22 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Nizam Haider @ 2015-11-23 17:48 UTC (permalink / raw)
  To: jic23, knaack.h, lars, pmeerw, gregkh, hamohammed.sa,
	shivanib134, asaf.vertz, cristina.moraru09
  Cc: linux-iio, devel, linux-kernel, Nizam Haider, Nizam Haider

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.

Signed-off-by: Nizam Haider <nijamh@cdac.in>
---
 drivers/staging/iio/light/tsl2x7x_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/drivers/staging/iio/light/tsl2x7x_core.c
index 9dfd048..5b1c165 100644
--- a/drivers/staging/iio/light/tsl2x7x_core.c
+++ b/drivers/staging/iio/light/tsl2x7x_core.c
@@ -1898,7 +1898,7 @@ static int tsl2x7x_probe(struct i2c_client *clientp,
 	mutex_init(&chip->prox_mutex);
 
 	chip->tsl2x7x_chip_status = TSL2X7X_CHIP_UNKNOWN;
-	chip->pdata = clientp->dev.platform_data;
+	chip->pdata = dev_get_platdata(&clientp->dev);
 	chip->id = id->driver_data;
 	chip->chip_info =
 		&tsl2x7x_chip_info_tbl[device_channel_config[id->driver_data]];
-- 
1.8.1.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Staging: iio: light: tsl2x7x_core: use dev_get_platdata()
  2015-11-23 17:48 [PATCH] Staging: iio: light: tsl2x7x_core: use dev_get_platdata() Nizam Haider
@ 2015-11-29 15:22 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2015-11-29 15:22 UTC (permalink / raw)
  To: Nizam Haider, knaack.h, lars, pmeerw, gregkh, hamohammed.sa,
	shivanib134, asaf.vertz, cristina.moraru09
  Cc: linux-iio, devel, linux-kernel, Nizam Haider

On 23/11/15 17:48, Nizam Haider wrote:
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly.
> 
> Signed-off-by: Nizam Haider <nijamh@cdac.in>
Applied to the togreg branch of iio.git - initially pushed out as testing.
Note that branch will get rebased shortly to catch up with Greg's staging-next.

Thanks,

Jonathan
> ---
>  drivers/staging/iio/light/tsl2x7x_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/drivers/staging/iio/light/tsl2x7x_core.c
> index 9dfd048..5b1c165 100644
> --- a/drivers/staging/iio/light/tsl2x7x_core.c
> +++ b/drivers/staging/iio/light/tsl2x7x_core.c
> @@ -1898,7 +1898,7 @@ static int tsl2x7x_probe(struct i2c_client *clientp,
>  	mutex_init(&chip->prox_mutex);
>  
>  	chip->tsl2x7x_chip_status = TSL2X7X_CHIP_UNKNOWN;
> -	chip->pdata = clientp->dev.platform_data;
> +	chip->pdata = dev_get_platdata(&clientp->dev);
>  	chip->id = id->driver_data;
>  	chip->chip_info =
>  		&tsl2x7x_chip_info_tbl[device_channel_config[id->driver_data]];
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-29 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-23 17:48 [PATCH] Staging: iio: light: tsl2x7x_core: use dev_get_platdata() Nizam Haider
2015-11-29 15:22 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome