Skip to content

Commit

Permalink
iio driver astyle fix for adp1051
Browse files Browse the repository at this point in the history
Signed-off-by: ivangilmercano <[email protected]>
  • Loading branch information
ivangilmercano committed Feb 7, 2025
1 parent b473b0e commit 79376fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/adp1050/iio_adp1050.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ static int adp1050_iio_write_modulation(void *dev, char *buf, uint32_t len,

for (i = 0; i < ADP1050_IIO_OUTPUT_CHANNELS; i++)
if (!strcmp(buf, adp1050_modulation_avail[ADP1050_IIO_MODULATION_AVAIL_MASK(
i)]))
i)]))
break;

if (i == ADP1050_IIO_OUTPUT_CHANNELS)
Expand Down Expand Up @@ -1111,7 +1111,7 @@ static int adp1050_iio_read_enable(void *dev, char *buf, uint32_t len,
return ret;

if (no_os_field_get(ADP1050_PULSE_SKIPPING_ENABLE,
val) == ADP1050_PULSE_SKIPPING_ENABLE)
val) == ADP1050_PULSE_SKIPPING_ENABLE)
return sprintf(buf, "%s ", adp1050_enable_avail[1]);

return sprintf(buf, "%s ", adp1050_enable_avail[0]);
Expand Down

0 comments on commit 79376fc

Please sign in to comment.