lkml.org 
[lkml]   [2009]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] ALS: TSL2550 driver move from i2c/chips
    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


    \
     
     \ /
      Last update: 2009-10-09 17:05    [W:0.020 / U:10.888 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site