diff options
author | Catalina Mocanu <catalina.mocanu@gmail.com> | 2014-09-19 21:32:09 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 23:25:09 (GMT) |
commit | 714ab9bdd350413f48ad401bd25e11b3e9f257ab (patch) | |
tree | 0083d9974c46f1ec80055f60273b3172adf6a866 /drivers/staging/iio/trigger | |
parent | 8a689c114796d8a3801c2bf3e25d3e21d6816036 (diff) | |
download | linux-714ab9bdd350413f48ad401bd25e11b3e9f257ab.tar.xz |
staging: iio: trigger: add blank lines after declarations
This fixes the following checkpatch.pl warning:
WARNING: Missing a blank line after declarations.
Signed-off-by: Catalina Mocanu <catalina.mocanu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/trigger')
-rw-r--r-- | drivers/staging/iio/trigger/iio-trig-periodic-rtc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c index b1aeb88..8f0a2ff 100644 --- a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c +++ b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c @@ -33,6 +33,7 @@ static int iio_trig_periodic_rtc_set_state(struct iio_trigger *trig, bool state) { struct iio_prtc_trigger_info *trig_info = iio_trigger_get_drvdata(trig); int ret; + if (trig_info->frequency == 0 && state) return -EINVAL; dev_dbg(&trig_info->rtc->dev, "trigger frequency is %d\n", @@ -50,6 +51,7 @@ static ssize_t iio_trig_periodic_read_freq(struct device *dev, { struct iio_trigger *trig = to_iio_trigger(dev); struct iio_prtc_trigger_info *trig_info = iio_trigger_get_drvdata(trig); + return sprintf(buf, "%u\n", trig_info->frequency); } @@ -183,6 +185,7 @@ static int iio_trig_periodic_rtc_remove(struct platform_device *dev) { struct iio_trigger *trig, *trig2; struct iio_prtc_trigger_info *trig_info; + mutex_lock(&iio_prtc_trigger_list_lock); list_for_each_entry_safe(trig, trig2, |