diff options
author | Dhaval Shah <dhaval.shah@softnautics.com> | 2017-12-07 22:47:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-18 10:02:26 -0500 |
commit | ef7e69fc70c7fc07a9daff4131ef979636d06dbd (patch) | |
tree | a60f1b52d561c9b269ee4e2f71a43f6eb3b720a9 | |
parent | 3288de12bdb3f84a702ec06baf2a63a2f9f332d2 (diff) |
misc: apds990x: Missing a blank line after declarations.
Resolved all the missing a blank line after declarations checkpatch
warnings. Issue found by checkpatch.
Signed-off-by: Dhaval Shah <dhaval.shah@softnautics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/apds990x.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/misc/apds990x.c b/drivers/misc/apds990x.c index c9f07032c2fc..ed9412d750b7 100644 --- a/drivers/misc/apds990x.c +++ b/drivers/misc/apds990x.c | |||
@@ -715,6 +715,7 @@ static ssize_t apds990x_rate_avail(struct device *dev, | |||
715 | { | 715 | { |
716 | int i; | 716 | int i; |
717 | int pos = 0; | 717 | int pos = 0; |
718 | |||
718 | for (i = 0; i < ARRAY_SIZE(arates_hz); i++) | 719 | for (i = 0; i < ARRAY_SIZE(arates_hz); i++) |
719 | pos += sprintf(buf + pos, "%d ", arates_hz[i]); | 720 | pos += sprintf(buf + pos, "%d ", arates_hz[i]); |
720 | sprintf(buf + pos - 1, "\n"); | 721 | sprintf(buf + pos - 1, "\n"); |
@@ -725,6 +726,7 @@ static ssize_t apds990x_rate_show(struct device *dev, | |||
725 | struct device_attribute *attr, char *buf) | 726 | struct device_attribute *attr, char *buf) |
726 | { | 727 | { |
727 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 728 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
729 | |||
728 | return sprintf(buf, "%d\n", chip->arate); | 730 | return sprintf(buf, "%d\n", chip->arate); |
729 | } | 731 | } |
730 | 732 | ||
@@ -784,6 +786,7 @@ static ssize_t apds990x_prox_show(struct device *dev, | |||
784 | { | 786 | { |
785 | ssize_t ret; | 787 | ssize_t ret; |
786 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 788 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
789 | |||
787 | if (pm_runtime_suspended(dev) || !chip->prox_en) | 790 | if (pm_runtime_suspended(dev) || !chip->prox_en) |
788 | return -EIO; | 791 | return -EIO; |
789 | 792 | ||
@@ -807,6 +810,7 @@ static ssize_t apds990x_prox_enable_show(struct device *dev, | |||
807 | struct device_attribute *attr, char *buf) | 810 | struct device_attribute *attr, char *buf) |
808 | { | 811 | { |
809 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 812 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
813 | |||
810 | return sprintf(buf, "%d\n", chip->prox_en); | 814 | return sprintf(buf, "%d\n", chip->prox_en); |
811 | } | 815 | } |
812 | 816 | ||
@@ -847,6 +851,7 @@ static ssize_t apds990x_prox_reporting_mode_show(struct device *dev, | |||
847 | struct device_attribute *attr, char *buf) | 851 | struct device_attribute *attr, char *buf) |
848 | { | 852 | { |
849 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 853 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
854 | |||
850 | return sprintf(buf, "%s\n", | 855 | return sprintf(buf, "%s\n", |
851 | reporting_modes[!!chip->prox_continuous_mode]); | 856 | reporting_modes[!!chip->prox_continuous_mode]); |
852 | } | 857 | } |
@@ -884,6 +889,7 @@ static ssize_t apds990x_lux_thresh_above_show(struct device *dev, | |||
884 | struct device_attribute *attr, char *buf) | 889 | struct device_attribute *attr, char *buf) |
885 | { | 890 | { |
886 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 891 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
892 | |||
887 | return sprintf(buf, "%d\n", chip->lux_thres_hi); | 893 | return sprintf(buf, "%d\n", chip->lux_thres_hi); |
888 | } | 894 | } |
889 | 895 | ||
@@ -891,6 +897,7 @@ static ssize_t apds990x_lux_thresh_below_show(struct device *dev, | |||
891 | struct device_attribute *attr, char *buf) | 897 | struct device_attribute *attr, char *buf) |
892 | { | 898 | { |
893 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 899 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
900 | |||
894 | return sprintf(buf, "%d\n", chip->lux_thres_lo); | 901 | return sprintf(buf, "%d\n", chip->lux_thres_lo); |
895 | } | 902 | } |
896 | 903 | ||
@@ -926,6 +933,7 @@ static ssize_t apds990x_lux_thresh_above_store(struct device *dev, | |||
926 | { | 933 | { |
927 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 934 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
928 | int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_hi, buf); | 935 | int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_hi, buf); |
936 | |||
929 | if (ret < 0) | 937 | if (ret < 0) |
930 | return ret; | 938 | return ret; |
931 | return len; | 939 | return len; |
@@ -937,6 +945,7 @@ static ssize_t apds990x_lux_thresh_below_store(struct device *dev, | |||
937 | { | 945 | { |
938 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 946 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
939 | int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_lo, buf); | 947 | int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_lo, buf); |
948 | |||
940 | if (ret < 0) | 949 | if (ret < 0) |
941 | return ret; | 950 | return ret; |
942 | return len; | 951 | return len; |
@@ -954,6 +963,7 @@ static ssize_t apds990x_prox_threshold_show(struct device *dev, | |||
954 | struct device_attribute *attr, char *buf) | 963 | struct device_attribute *attr, char *buf) |
955 | { | 964 | { |
956 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 965 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
966 | |||
957 | return sprintf(buf, "%d\n", chip->prox_thres); | 967 | return sprintf(buf, "%d\n", chip->prox_thres); |
958 | } | 968 | } |
959 | 969 | ||
@@ -1026,6 +1036,7 @@ static ssize_t apds990x_chip_id_show(struct device *dev, | |||
1026 | struct device_attribute *attr, char *buf) | 1036 | struct device_attribute *attr, char *buf) |
1027 | { | 1037 | { |
1028 | struct apds990x_chip *chip = dev_get_drvdata(dev); | 1038 | struct apds990x_chip *chip = dev_get_drvdata(dev); |
1039 | |||
1029 | return sprintf(buf, "%s %d\n", chip->chipname, chip->revision); | 1040 | return sprintf(buf, "%s %d\n", chip->chipname, chip->revision); |
1030 | } | 1041 | } |
1031 | 1042 | ||