From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
Barebox List <barebox@lists.infradead.org>
Subject: Re: [PATCH 3/6] video: Add PWM backlight support
Date: Fri, 12 Jun 2015 11:58:58 +0200 [thread overview]
Message-ID: <557AAD62.5040108@pengutronix.de> (raw)
In-Reply-To: <1434102821-10555-3-git-send-email-s.hauer@pengutronix.de>
[-- Attachment #1.1: Type: text/plain, Size: 821 bytes --]
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 |
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-06-12 9:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 9:53 [PATCH 1/6] video: stmfb: Add device tree support Sascha Hauer
2015-06-12 9:53 ` [PATCH 2/6] video: Add backlight support Sascha Hauer
2015-06-12 9:53 ` [PATCH 3/6] video: Add PWM " Sascha Hauer
2015-06-12 9:58 ` Marc Kleine-Budde [this message]
2015-06-12 9:53 ` [PATCH 4/6] ARM: i.MX28: Add PWM clk support Sascha Hauer
2015-06-12 9:53 ` [PATCH 5/6] PWM: Allow multiple PWMs per device node Sascha Hauer
2015-06-12 9:53 ` [PATCH 6/6] PWM: Add MXS PWM support Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=557AAD62.5040108@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox