The patch titled Subject: leds-lm3530: replace i2c_client with led_classdev has been removed from the -mm tree. Its filename was leds-lm3530-replace-i2c_client-with-led_classdev.patch This patch was dropped because an updated version will be merged The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ From: "Kim, Milo" <Milo.Kim@xxxxxx> Subject: leds-lm3530: replace i2c_client with led_classdev To get members of lm3530_data, use 'struct led_classdev' rather than 'struct i2c_client'. Signed-off-by: Milo(Woogyom) Kim <milo.kim@xxxxxx> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx> Cc: Richard Purdie <rpurdie@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/leds/leds-lm3530.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff -puN drivers/leds/leds-lm3530.c~leds-lm3530-replace-i2c_client-with-led_classdev drivers/leds/leds-lm3530.c --- a/drivers/leds/leds-lm3530.c~leds-lm3530-replace-i2c_client-with-led_classdev +++ a/drivers/leds/leds-lm3530.c @@ -297,9 +297,9 @@ static void lm3530_brightness_set(struct static ssize_t lm3530_mode_get(struct device *dev, struct device_attribute *attr, char *buf) { - struct i2c_client *client = container_of( - dev->parent, struct i2c_client, dev); - struct lm3530_data *drvdata = i2c_get_clientdata(client); + struct led_classdev *led_cdev = dev_get_drvdata(dev); + struct lm3530_data *drvdata = + container_of(led_cdev, struct lm3530_data, led_dev); int i, len = 0; for (i = 0; i < ARRAY_SIZE(mode_map); i++) @@ -316,11 +316,10 @@ static ssize_t lm3530_mode_get(struct de static ssize_t lm3530_mode_set(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { - int err; - struct i2c_client *client = container_of( - dev->parent, struct i2c_client, dev); - struct lm3530_data *drvdata = i2c_get_clientdata(client); - int mode; + struct led_classdev *led_cdev = dev_get_drvdata(dev); + struct lm3530_data *drvdata = + container_of(led_cdev, struct lm3530_data, led_dev); + int mode, err; mode = lm3530_get_mode_from_str(buf); if (mode < 0) { _ Patches currently in -mm which might be from Milo.Kim@xxxxxx are backlight-new-backlight-driver-for-lp855x-devices.patch leds-lp5521-add-name-in-the-lp5521_led_config.patch leds-lp5521-add-update_config-in-the-lp5521_platform_data.patch leds-lp5521-support-led-pattern-data.patch leds-lp5521-support-led-pattern-data-checkpatch-fixes.patch leds-lp5521-redefinition-of-register-bits.patch leds-lm3530-support-pwm-input-mode.patch leds-lm3530-remove-lm3530_als_zone_reg-code.patch leds-lm3530-replace-pltfm-with-pdata.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html