[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210219105303.GD19207@duo.ucw.cz>
Date: Fri, 19 Feb 2021 11:53:03 +0100
From: Pavel Machek <pavel@....cz>
To: Gene Chen <gene.chen.richtek@...il.com>
Cc: jacek.anaszewski@...il.com, robh+dt@...nel.org,
matthias.bgg@...il.com, dmurphy@...com, linux-leds@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
gene_chen@...htek.com, Wilma.Wu@...iatek.com,
shufan_lee@...htek.com, cy_huang@...htek.com,
benjamin.chao@...iatek.com
Subject: Re: [PATCH v13 5/5] leds: mt6360: Add LED driver for MT6360
Hi!
> From: Gene Chen <gene_chen@...htek.com>
>
> Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode,
> 3-channel RGB LED support Register/Flash/Breath Mode, and 1-channel for
> moonlight LED.
What kind of ninja mutant hardware is this?
Can we make this go to drivers/leds/flash?
> +static int mt6360_flash_brightness_set(struct led_classdev_flash *fl_cdev, u32 brightness)
> +{
> + /*
> + * Due to the current spike when turning on flash, let brightness to be kept by framework.
> + * This empty function is used to prevent led_classdev_flash register ops check failure.
> + */
Please stick to 80 columns.
> +static int mt6360_init_common_properties(struct mt6360_led *led, struct led_init_data *init_data)
> +{
> + const char * const states[] = { "off", "keep", "on" };
No need for space between * and const.
Best regards,
Pavel
--
http://www.livejournal.com/~pavelmachek
Download attachment "signature.asc" of type "application/pgp-signature" (196 bytes)
Powered by blists - more mailing lists