Thread (37 messages) 37 messages, 10 authors, 2025-02-04

Re: [PATCH 12/13] phy: mapphone-mdm6600: use gpiods_set_array_value_cansleep

From: Andy Shevchenko <hidden>
Date: 2025-02-02 10:20:46
Also in: linux-gpio, linux-iio, linux-mmc, linux-phy, linux-sound, lkml

On Fri, Jan 31, 2025 at 10:25 PM David Lechner [off-list ref] wrote:
Reduce verbosity by using gpiods_set_array_value_cansleep() instead of
gpiods_set_array_value_cansleep().

ddata->cmd_gpios->ndescs is validated to be equal to
PHY_MDM6600_NR_CMD_LINES during driver probe, so it will have the same
value as the previously hard-coded argument.
...
static void phy_mdm6600_cmd(struct phy_mdm6600 *ddata, int val)

        values[0] = val;
FWIW, side note: this code is (potentially) buggy on BE 64-bit. Same
for the rest of similar cases, in case you want to address this...

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help