[PATCH 3/6] video: Add PWM backlight support

Marc Kleine-Budde mkl at pengutronix.de
Fri Jun 12 02:58:58 PDT 2015


On 06/12/2015 11:53 AM, Sascha Hauer wrote:
> +static·int·backlight_pwm_set(struct·backlight_device·*backlight,
> +» » int·brightness)
> +{
> +» struct·pwm_backlight·*pwm_backlight·=·container_of(backlight,
> +» » » struct·pwm_backlight,·backlight);
> +» unsigned·long·long·duty·=··pwm_backlight->period;
> +» unsigned·int·max·=·pwm_backlight->backlight.brightness_max;
> +
> +········duty·*=·brightness;
> +········do_div(duty,·max);

indent with tab instead of space here.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20150612/f266c088/attachment.sig>


More information about the barebox mailing list