diff options
author | Milo(Woogyom) Kim <milo.kim@ti.com> | 2013-02-05 04:57:36 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-02-06 18:59:27 -0500 |
commit | ffbdccdbbaee814963a09d25b1cc598cfe131366 (patch) | |
tree | ed487c6e89fb106fd7de798d166ee4342efac85e /drivers/leds/leds-lp55xx-common.h | |
parent | e3a700d8aae190e09fb06abe0ddd2e172a682508 (diff) |
leds-lp55xx: use lp55xx common init function - post int
LP5521/5523 chip configuration is replaced with lp55xx common function,
lp55xx_post_init_device().
Name change:
lp5521/5523_configure() to lp5521/5523_post_init_device()
These are called in init function.
Register access function
Argument type is changed from 'i2c_client' to 'lp55xx_chip'.
Use exported R/W functions of lp55xx common driver.
Temporary variables in lp5521/5523_init_device()
These functions will be removed but temporary variables are needed for
blocking build warnings - incompatible pointer.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-lp55xx-common.h')
-rw-r--r-- | drivers/leds/leds-lp55xx-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/leds/leds-lp55xx-common.h b/drivers/leds/leds-lp55xx-common.h index 81753012ba27..ffedc7723d84 100644 --- a/drivers/leds/leds-lp55xx-common.h +++ b/drivers/leds/leds-lp55xx-common.h | |||
@@ -32,10 +32,14 @@ struct lp55xx_reg { | |||
32 | * struct lp55xx_device_config | 32 | * struct lp55xx_device_config |
33 | * @reset : Chip specific reset command | 33 | * @reset : Chip specific reset command |
34 | * @enable : Chip specific enable command | 34 | * @enable : Chip specific enable command |
35 | * @post_init_device : Chip specific initialization code | ||
35 | */ | 36 | */ |
36 | struct lp55xx_device_config { | 37 | struct lp55xx_device_config { |
37 | const struct lp55xx_reg reset; | 38 | const struct lp55xx_reg reset; |
38 | const struct lp55xx_reg enable; | 39 | const struct lp55xx_reg enable; |
40 | |||
41 | /* define if the device has specific initialization process */ | ||
42 | int (*post_init_device) (struct lp55xx_chip *chip); | ||
39 | }; | 43 | }; |
40 | 44 | ||
41 | /* | 45 | /* |