Skip to content

Commit

Permalink
backlight: pcf50633: Register a pcf50633-backlight device in pcf50633…
Browse files Browse the repository at this point in the history
… core driver.

Register a device newly added pcf50633-backlight driver as a child device in
the pcf50633 core driver.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
Lars-Peter Clausen authored and Richard Purdie committed May 26, 2010
1 parent 2ddfd12 commit f5bf403
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mfd/pcf50633-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,9 @@ static int __devinit pcf50633_probe(struct i2c_client *client,
&pcf->mbc_pdev);
pcf50633_client_dev_register(pcf, "pcf50633-adc",
&pcf->adc_pdev);
pcf50633_client_dev_register(pcf, "pcf50633-backlight",
&pcf->bl_pdev);


for (i = 0; i < PCF50633_NUM_REGULATORS; i++) {
struct platform_device *pdev;
Expand Down
4 changes: 4 additions & 0 deletions include/linux/mfd/pcf50633/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/power_supply.h>
#include <linux/mfd/pcf50633/backlight.h>

struct pcf50633;

Expand All @@ -43,6 +44,8 @@ struct pcf50633_platform_data {
void (*force_shutdown)(struct pcf50633 *);

u8 resumers[5];

struct pcf50633_bl_platform_data *backlight_data;
};

struct pcf50633_irq {
Expand Down Expand Up @@ -152,6 +155,7 @@ struct pcf50633 {
struct platform_device *mbc_pdev;
struct platform_device *adc_pdev;
struct platform_device *input_pdev;
struct platform_device *bl_pdev;
struct platform_device *regulator_pdev[PCF50633_NUM_REGULATORS];
};

Expand Down

0 comments on commit f5bf403

Please sign in to comment.