On 16 March 2017 14:05:55 GMT+00:00, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: >On Thu, Mar 16, 2017 at 02:47:36PM +0100, Miguel Robles wrote: >> Fix checkpatch warnings: >> Symbolic permissions are not preferred. Consider using octal >permissions. >> >> Signed-off-by: Miguel Robles <miguel.robles@xxxxxxxxxx> >> --- >> drivers/staging/iio/frequency/ad9832.c | 20 ++++++++++---------- >> drivers/staging/iio/frequency/ad9834.c | 22 +++++++++++----------- >> drivers/staging/iio/frequency/dds.h | 2 +- >> 3 files changed, 22 insertions(+), 22 deletions(-) >> >> diff --git a/drivers/staging/iio/frequency/ad9832.c >b/drivers/staging/iio/frequency/ad9832.c >> index 8d40c8e..163a4ef 100644 >> --- a/drivers/staging/iio/frequency/ad9832.c >> +++ b/drivers/staging/iio/frequency/ad9832.c >> @@ -248,22 +248,22 @@ static ssize_t ad9832_write(struct device *dev, >struct device_attribute *attr, >> * see dds.h for further information >> */ >> >> -static IIO_DEV_ATTR_FREQ(0, 0, S_IWUSR, NULL, ad9832_write, >AD9832_FREQ0HM); >> -static IIO_DEV_ATTR_FREQ(0, 1, S_IWUSR, NULL, ad9832_write, >AD9832_FREQ1HM); >> -static IIO_DEV_ATTR_FREQSYMBOL(0, S_IWUSR, NULL, ad9832_write, >AD9832_FREQ_SYM); >> +static IIO_DEV_ATTR_FREQ(0, 0, 0200, NULL, ad9832_write, >AD9832_FREQ0HM); >> +static IIO_DEV_ATTR_FREQ(0, 1, 0200, NULL, ad9832_write, >AD9832_FREQ1HM); >> +static IIO_DEV_ATTR_FREQSYMBOL(0, 0200, NULL, ad9832_write, >AD9832_FREQ_SYM); > >Meta-comment, would a IIO_DEV_ATTR_WO_FREQ() and friends help out here? >That way it's impossible to get the permission values incorrect. > Keep it local to driver perhaps as this should be done with properly described channels. Snag is no one has pinned down a final abi for these devices yet! Lars is cleaning this up on the to-do list? J >thanks, > >greg k-h -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html