lkml.org 
[lkml]   [2023]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/8] rtc: isl12022: add support for trip level DT bindings
On Mon, Jun 12, 2023 at 01:30:54PM +0200, Rasmus Villemoes wrote:
> Implement support for using the values given in the
> isil,trip-level[87]5-microvolt properties to set appropriate values in
> the VB[87]5TP bits in the PWR_VBAT register.

...

> + for (x85 = 0; x85 < ARRAY_SIZE(trip_level85) - 1; ++x85)
> + if (level85 <= trip_level85[x85])
> + break;
> +
> + for (x75 = 0; x75 < ARRAY_SIZE(trip_level75) - 1; ++x75)
> + if (level75 <= trip_level75[x75])
> + break;

Does preincrement give us anything in comparison to postincrement?

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2023-06-12 17:45    [W:0.379 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site