This patchset is for fixes reported by checkpatch.pl
cover This patchset is for fixes reported by checkpatch.pl
Please find the following patches:
iio: accel: mma8452: Fix code style warning for symbolic permissions
iio: accel: mma8452: Fix code style warning for unsigned int
declarations
drivers/iio/accel/mma8452.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/2 iio: accel: mma8452: Fix code style warning
Replace symbolic permissions with octal permissions to improve code readability.
Issue found by checkpatch.
--- drivers/iio/accel/mma8452.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iio/accel/mma8452.c +3 -3
@@ -418,11 +418,11 @@ static ssize_t mma8452_show_os_ratio_avail(struct device *dev, }static IIO_DEV_ATTR_SAMP_FREQ_AVAIL (mma8452_show_samp_freq_avail); -static IIO_DEVICE_ATTR(in_accel_scale_available, S_IRUGO, +static IIO_DEVICE_ATTR(in_accel_scale_available, 0444, mma8452_show_scale_avail, NULL, 0); static IIO_DEVICE_ATTR(in_accel_filter_high_pass_3db_frequency_available, - S_IRUGO, mma8452_show_hp_cutoff_avail, NULL, 0); -static IIO_DEVICE_ATTR(in_accel_oversampling_ratio_available, S_IRUGO, + 0444, mma8452_show_hp_cutoff_avail, NULL, 0); +static IIO_DEVICE_ATTR(in_accel_oversampling_ratio_available, 0444, mma8452_show_os_ratio_avail, NULL, 0); static int mma8452_get_samp_freq_index(struct mma8452_data *data,
Signature · 1 line
2.7.4
Jonathan Cameron
maintainerRe: [PATCH 1/2] iio: accel: mma8452: Fix code style warning
Quoted 6 lines · On Sat, 23 Sep 2017 16:56:29 -0400 Harinath Nampally <[email protected]>…
Replace symbolic permissions with octal permissions to improve code readability.
Issue found by checkpatch.
Signed-off-by Harinath Nampally <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.
Thanks,
Jonathan
Quoted 23 lines
--- drivers/iio/accel/mma8452.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/iio/accel/mma8452.c +3
-3@@ -418,11 +418,11 @@ static ssize_t mma8452_show_os_ratio_avail(struct device *dev, }static IIO_DEV_ATTR_SAMP_FREQ_AVAIL (mma8452_show_samp_freq_avail); -static IIO_DEVICE_ATTR(in_accel_scale_available, S_IRUGO, +static IIO_DEVICE_ATTR(in_accel_scale_available, 0444, mma8452_show_scale_avail, NULL, 0); static IIO_DEVICE_ATTR(in_accel_filter_high_pass_3db_frequency_available, - S_IRUGO, mma8452_show_hp_cutoff_avail, NULL, 0); -static IIO_DEVICE_ATTR(in_accel_oversampling_ratio_available, S_IRUGO, + 0444, mma8452_show_hp_cutoff_avail, NULL, 0); +static IIO_DEVICE_ATTR(in_accel_oversampling_ratio_available, 0444, mma8452_show_os_ratio_avail, NULL, 0); static int mma8452_get_samp_freq_index(struct mma8452_data *data,
PATCH 2/2 iio: accel: mma8452: Fix code style warning for unsigned int declarations
In reply to Harinath NampallyReplace 'unsigned' with 'unsigned int'
to improve code readability.
Issue found by checkpatch.
--- drivers/iio/accel/mma8452.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/accel/mma8452.c +2 -2
@@ -1088,8 +1088,8 @@ static irqreturn_t mma8452_trigger_handler(int irq, void *p) }static int mma8452_reg_access_dbg (struct iio_dev *indio_dev, -unsigned reg,unsigned writeval, -unsigned *readval) +unsigned int reg,unsigned int writeval, +unsigned int *readval) {int ret;struct mma8452_data *data =iio_priv (indio_dev);
Signature · 1 line
2.7.4
Jonathan Cameron
maintainerRe: [PATCH 2/2] iio: accel: mma8452: Fix code style warning for unsigned int declarations
Quoted 6 lines · On Sat, 23 Sep 2017 16:56:30 -0400 Harinath Nampally <[email protected]>…
Replace 'unsigned' with 'unsigned int'
to improve code readability.Issue found by checkpatch.
Signed-off-by Harinath Nampally <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.
Thanks,
Jonathan
Quoted 19 lines
--- drivers/iio/accel/mma8452.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/iio/accel/mma8452.c +2
-2@@ -1088,8 +1088,8 @@ static irqreturn_t mma8452_trigger_handler(int irq, void *p) }static int mma8452_reg_access_dbg (struct iio_dev *indio_dev, -unsigned reg,unsigned writeval, -unsigned *readval) +unsigned int reg,unsigned int writeval, +unsigned int *readval) {int ret;struct mma8452_data *data =iio_priv (indio_dev);