Re: [PATCH] ALS: TSL2550 driver move from i2c/chips

From: Jonathan Cameron
Date: Fri Oct 09 2009 - 10:55:01 EST


Friday afternoon moment....

That id element will need to be signed for any errors on idr allocation
to be detected. Will fix for next version.
> struct tsl2550_data {
> + struct device *classdev;
> struct i2c_client *client;
> struct mutex update_lock;
> + unsigned int id;
>
> unsigned int power_state : 1;
> unsigned int operating_mode : 1;
>
....
>
> + data->id = tsl2550_get_id();
> + if (data->id < 0) {
> + err = data->id;
> + goto exit_kfree;
> + }
>

Jonathan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/