Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dhaval Shah and committed by
Greg Kroah-Hartman
ef7e69fc 3288de12

+11
+11
drivers/misc/apds990x.c
··· 715 715 { 716 716 int i; 717 717 int pos = 0; 718 + 718 719 for (i = 0; i < ARRAY_SIZE(arates_hz); i++) 719 720 pos += sprintf(buf + pos, "%d ", arates_hz[i]); 720 721 sprintf(buf + pos - 1, "\n"); ··· 726 725 struct device_attribute *attr, char *buf) 727 726 { 728 727 struct apds990x_chip *chip = dev_get_drvdata(dev); 728 + 729 729 return sprintf(buf, "%d\n", chip->arate); 730 730 } 731 731 ··· 786 784 { 787 785 ssize_t ret; 788 786 struct apds990x_chip *chip = dev_get_drvdata(dev); 787 + 789 788 if (pm_runtime_suspended(dev) || !chip->prox_en) 790 789 return -EIO; 791 790 ··· 810 807 struct device_attribute *attr, char *buf) 811 808 { 812 809 struct apds990x_chip *chip = dev_get_drvdata(dev); 810 + 813 811 return sprintf(buf, "%d\n", chip->prox_en); 814 812 } 815 813 ··· 851 847 struct device_attribute *attr, char *buf) 852 848 { 853 849 struct apds990x_chip *chip = dev_get_drvdata(dev); 850 + 854 851 return sprintf(buf, "%s\n", 855 852 reporting_modes[!!chip->prox_continuous_mode]); 856 853 } ··· 889 884 struct device_attribute *attr, char *buf) 890 885 { 891 886 struct apds990x_chip *chip = dev_get_drvdata(dev); 887 + 892 888 return sprintf(buf, "%d\n", chip->lux_thres_hi); 893 889 } 894 890 ··· 897 891 struct device_attribute *attr, char *buf) 898 892 { 899 893 struct apds990x_chip *chip = dev_get_drvdata(dev); 894 + 900 895 return sprintf(buf, "%d\n", chip->lux_thres_lo); 901 896 } 902 897 ··· 933 926 { 934 927 struct apds990x_chip *chip = dev_get_drvdata(dev); 935 928 int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_hi, buf); 929 + 936 930 if (ret < 0) 937 931 return ret; 938 932 return len; ··· 945 937 { 946 938 struct apds990x_chip *chip = dev_get_drvdata(dev); 947 939 int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_lo, buf); 940 + 948 941 if (ret < 0) 949 942 return ret; 950 943 return len; ··· 963 954 struct device_attribute *attr, char *buf) 964 955 { 965 956 struct apds990x_chip *chip = dev_get_drvdata(dev); 957 + 966 958 return sprintf(buf, "%d\n", chip->prox_thres); 967 959 } 968 960 ··· 1036 1026 struct device_attribute *attr, char *buf) 1037 1027 { 1038 1028 struct apds990x_chip *chip = dev_get_drvdata(dev); 1029 + 1039 1030 return sprintf(buf, "%s %d\n", chip->chipname, chip->revision); 1040 1031 } 1041 1032