Skip to content

Commit

Permalink
iio: adc: ad9361: Fix rssi_gain_step_error DEVICE_ATTR mode
Browse files Browse the repository at this point in the history
Since the attribute has a _store function defined, S_IWUSR
should be also set.

The issue was pointed by:
 #1461

Signed-off-by: Dragos Bogdan <[email protected]>
  • Loading branch information
dbogdan authored and nunojsa committed Mar 4, 2021
1 parent 2d38bef commit 89450f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/ad9361.c
Original file line number Diff line number Diff line change
Expand Up @@ -7170,7 +7170,7 @@ static IIO_DEVICE_ATTR(calib_mode_available, S_IRUGO,
NULL,
AD9361_CALIB_MODE_AVAIL);

static IIO_DEVICE_ATTR(rssi_gain_step_error, S_IRUGO,
static IIO_DEVICE_ATTR(rssi_gain_step_error, S_IRUGO | S_IWUSR,
ad9361_phy_show,
ad9361_phy_store,
AD9361_RSSI_GAIN_STEP_ERROR);
Expand Down

0 comments on commit 89450f1

Please sign in to comment.