pwm_bl.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) pwm_bl.c (bb7ca747f8d6243b3943c5b133048652020f4a50)
1/*
2 * linux/drivers/video/backlight/pwm_bl.c
3 *
4 * simple PWM based backlight control, board code has to setup
5 * 1) pin configuration so PWM waveforms can output
6 * 2) platform_data being correctly configured
7 *
8 * This program is free software; you can redistribute it and/or modify

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

103 if (IS_ERR(pb->pwm)) {
104 dev_err(&pdev->dev, "unable to request PWM for backlight\n");
105 ret = PTR_ERR(pb->pwm);
106 goto err_pwm;
107 } else
108 dev_dbg(&pdev->dev, "got pwm for backlight\n");
109
110 memset(&props, 0, sizeof(struct backlight_properties));
1/*
2 * linux/drivers/video/backlight/pwm_bl.c
3 *
4 * simple PWM based backlight control, board code has to setup
5 * 1) pin configuration so PWM waveforms can output
6 * 2) platform_data being correctly configured
7 *
8 * This program is free software; you can redistribute it and/or modify

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

103 if (IS_ERR(pb->pwm)) {
104 dev_err(&pdev->dev, "unable to request PWM for backlight\n");
105 ret = PTR_ERR(pb->pwm);
106 goto err_pwm;
107 } else
108 dev_dbg(&pdev->dev, "got pwm for backlight\n");
109
110 memset(&props, 0, sizeof(struct backlight_properties));
111 props.type = BACKLIGHT_RAW;
111 props.max_brightness = data->max_brightness;
112 bl = backlight_device_register(dev_name(&pdev->dev), &pdev->dev, pb,
113 &pwm_backlight_ops, &props);
114 if (IS_ERR(bl)) {
115 dev_err(&pdev->dev, "failed to register backlight\n");
116 ret = PTR_ERR(bl);
117 goto err_bl;
118 }

--- 86 unchanged lines hidden ---
112 props.max_brightness = data->max_brightness;
113 bl = backlight_device_register(dev_name(&pdev->dev), &pdev->dev, pb,
114 &pwm_backlight_ops, &props);
115 if (IS_ERR(bl)) {
116 dev_err(&pdev->dev, "failed to register backlight\n");
117 ret = PTR_ERR(bl);
118 goto err_bl;
119 }

--- 86 unchanged lines hidden ---