Re: [PATCH v4 13/13] video: backlight: mt6370: Add Mediatek MT6370 support

From
Andy Shevchenko <hidden>
Date
2022-07-13 12:08:08
Also in
dri-devel, linux-arm-kernel, linux-fbdev, linux-iio, linux-leds, linux-mediatek, linux-pm, linux-usb, lkml
Reply to
ChiaEn Wu, 2022-07-13
On Wed, Jul 13, 2022 at 12:53 PM ChiaEn Wu [off-list ref] wrote:
Andy Shevchenko [off-list ref] 於 2022年7月5日 週二 清晨5:14寫道:
quoted
On Mon, Jul 4, 2022 at 7:43 AM ChiaEn Wu [off-list ref] wrote:
Please, remove unneeded context when replying!

...
quoted
quoted
+               brightness_val[0] = (brightness - 1) & MT6370_BL_DIM2_MASK;
+               brightness_val[1] = (brightness - 1)
+                                   >> fls(MT6370_BL_DIM2_MASK);
Bad indentation. One line?
Well... if indent to one line, it will be over 80 characters(or called columns?)
From my understanding, it is not allowed, right??
It's allowed to some extent.Use your common sense.
Here it's obviously broken indentation.

...
quoted
quoted
+               prop_val = (ilog2(roundup_pow_of_two(prop_val)) + 1) >> 1;
Isn't something closer to get_order() or fls()?
I will revise it to "(get_order(prop_va * PAGE_SIZE) + 1) / 2" and
this change is meet your expectations??
Nope. Try again. What about fls()?

...
quoted
quoted
+       props->max_brightness = min_t(u32, brightness,
+                                     MT6370_BL_MAX_BRIGHTNESS);
One line?
 Ditto, it will be over 80 characters...
As per above.

-- 
With Best Regards,
Andy Shevchenko
Thread (35 messages) 35 messages, 7 authors, last reply 2022-07-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help