summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorCatalina Mocanu <catalina.mocanu@gmail.com>2014-09-19 14:32:09 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-19 16:25:09 -0700
commit714ab9bdd350413f48ad401bd25e11b3e9f257ab (patch)
tree0083d9974c46f1ec80055f60273b3172adf6a866 /drivers
parent8a689c114796d8a3801c2bf3e25d3e21d6816036 (diff)
downloadlinux-714ab9bdd350413f48ad401bd25e11b3e9f257ab.tar.gz
linux-714ab9bdd350413f48ad401bd25e11b3e9f257ab.tar.bz2
linux-714ab9bdd350413f48ad401bd25e11b3e9f257ab.zip
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')
-rw-r--r--drivers/staging/iio/trigger/iio-trig-periodic-rtc.c3
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 b1aeb88273c9..8f0a2ffa7150 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,