Commit eb967b6a authored by Sachin Kamat's avatar Sachin Kamat Committed by Jiri Kosina

Documentation: leds: Fix a typo

__initdata should be placed between the variable name and equal
sign for the variable to be placed in the intended section.
Fix the example.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarRob Landley <rob@landley.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c7449927
...@@ -71,7 +71,7 @@ To register the chip at address 0x63 on specific adapter, set the platform data ...@@ -71,7 +71,7 @@ To register the chip at address 0x63 on specific adapter, set the platform data
according to include/linux/platform_data/leds-lm3556.h, set the i2c board info according to include/linux/platform_data/leds-lm3556.h, set the i2c board info
Example: Example:
static struct i2c_board_info __initdata board_i2c_ch4[] = { static struct i2c_board_info board_i2c_ch4[] __initdata = {
{ {
I2C_BOARD_INFO(LM3556_NAME, 0x63), I2C_BOARD_INFO(LM3556_NAME, 0x63),
.platform_data = &lm3556_pdata, .platform_data = &lm3556_pdata,
......
...@@ -37,7 +37,7 @@ registered using the i2c_board_info mechanism. ...@@ -37,7 +37,7 @@ registered using the i2c_board_info mechanism.
To register the chip at address 0x60 on adapter 0, set the platform data To register the chip at address 0x60 on adapter 0, set the platform data
according to include/linux/leds-lp3944.h, set the i2c board info: according to include/linux/leds-lp3944.h, set the i2c board info:
static struct i2c_board_info __initdata a910_i2c_board_info[] = { static struct i2c_board_info a910_i2c_board_info[] __initdata = {
{ {
I2C_BOARD_INFO("lp3944", 0x60), I2C_BOARD_INFO("lp3944", 0x60),
.platform_data = &a910_lp3944_leds, .platform_data = &a910_lp3944_leds,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment