Re: [PATCH 3/5] Input: tsc2007 - fix minor coding style issues
From: Andy Shevchenko
Date: Fri Nov 13 2026 - 09:17:39 EST
On Thu, Nov 12, 2026 at 8:50 AM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
>
> Fix minor checkpatch warnings and checks across the tsc2007 driver:
> document the mutex used to serialize I2C transfers between interrupt
> handling and IIO reads, remove an unnecessary blank line following a
> loop opening brace, and drop extraneous spacing after a cast.
...
> u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc)
> if (rt > U32_MAX)
> return U32_MAX;
> - return (u32) rt;
> + return (u32)rt;
Do we need explicit casting?
--
With Best Regards,
Andy Shevchenko