leds-lm3530.c (df07cf81268192e42c4cdf91f5f4bf9aaac1b2f0) leds-lm3530.c (98ea1ea20cb7090d5ae2003c23fc8a7f14fca4c7)
1/*
2 * Copyright (C) 2011 ST-Ericsson SA.
3 * Copyright (C) 2009 Motorola, Inc.
4 *
5 * License Terms: GNU General Public License v2
6 *
7 * Simple driver for National Semiconductor LM3530 Backlight driver chip
8 *

--- 363 unchanged lines hidden (view full) ---

372 dev_err(dev, "Setting %s Mode failed :%d\n", buf, err);
373 return err;
374 }
375
376 return sizeof(drvdata->mode);
377}
378static DEVICE_ATTR(mode, 0644, lm3530_mode_get, lm3530_mode_set);
379
1/*
2 * Copyright (C) 2011 ST-Ericsson SA.
3 * Copyright (C) 2009 Motorola, Inc.
4 *
5 * License Terms: GNU General Public License v2
6 *
7 * Simple driver for National Semiconductor LM3530 Backlight driver chip
8 *

--- 363 unchanged lines hidden (view full) ---

372 dev_err(dev, "Setting %s Mode failed :%d\n", buf, err);
373 return err;
374 }
375
376 return sizeof(drvdata->mode);
377}
378static DEVICE_ATTR(mode, 0644, lm3530_mode_get, lm3530_mode_set);
379
380static int __devinit lm3530_probe(struct i2c_client *client,
380static int lm3530_probe(struct i2c_client *client,
381 const struct i2c_device_id *id)
382{
383 struct lm3530_platform_data *pdata = client->dev.platform_data;
384 struct lm3530_data *drvdata;
385 int err = 0;
386
387 if (pdata == NULL) {
388 dev_err(&client->dev, "platform data required\n");

--- 99 unchanged lines hidden ---
381 const struct i2c_device_id *id)
382{
383 struct lm3530_platform_data *pdata = client->dev.platform_data;
384 struct lm3530_data *drvdata;
385 int err = 0;
386
387 if (pdata == NULL) {
388 dev_err(&client->dev, "platform data required\n");

--- 99 unchanged lines hidden ---