On 09/05/13 10:29, Sachin Kamat wrote: > Silences the following warning: > drivers/staging/iio/light/tsl2x7x_core.c:553:70: > warning: Using plain integer as NULL pointer > > Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> > Cc: J. August Brenner <jbrenner@xxxxxxxxxxx> Thanks, I've been meaning to fix that one myself for ages :( Much easier just to apply your patch though. Applied to the togreg branch of iio.git > --- > 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 aa86725..3439d37 100644 > --- a/drivers/staging/iio/light/tsl2x7x_core.c > +++ b/drivers/staging/iio/light/tsl2x7x_core.c > @@ -550,7 +550,7 @@ prox_poll_err: > static void tsl2x7x_defaults(struct tsl2X7X_chip *chip) > { > /* If Operational settings defined elsewhere.. */ > - if (chip->pdata && chip->pdata->platform_default_settings != 0) > + if (chip->pdata && chip->pdata->platform_default_settings) > memcpy(&(chip->tsl2x7x_settings), > chip->pdata->platform_default_settings, > sizeof(tsl2x7x_default_settings)); > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html