Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef7e69fc authored by Dhaval Shah's avatar Dhaval Shah Committed by Greg Kroah-Hartman
Browse files

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: default avatarDhaval Shah <dhaval.shah@softnautics.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3288de12
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -715,6 +715,7 @@ static ssize_t apds990x_rate_avail(struct device *dev,
{
{
	int i;
	int i;
	int pos = 0;
	int pos = 0;

	for (i = 0; i < ARRAY_SIZE(arates_hz); i++)
	for (i = 0; i < ARRAY_SIZE(arates_hz); i++)
		pos += sprintf(buf + pos, "%d ", arates_hz[i]);
		pos += sprintf(buf + pos, "%d ", arates_hz[i]);
	sprintf(buf + pos - 1, "\n");
	sprintf(buf + pos - 1, "\n");
@@ -725,6 +726,7 @@ static ssize_t apds990x_rate_show(struct device *dev,
				   struct device_attribute *attr, char *buf)
				   struct device_attribute *attr, char *buf)
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);

	return sprintf(buf, "%d\n", chip->arate);
	return sprintf(buf, "%d\n", chip->arate);
}
}


@@ -784,6 +786,7 @@ static ssize_t apds990x_prox_show(struct device *dev,
{
{
	ssize_t ret;
	ssize_t ret;
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);

	if (pm_runtime_suspended(dev) || !chip->prox_en)
	if (pm_runtime_suspended(dev) || !chip->prox_en)
		return -EIO;
		return -EIO;


@@ -807,6 +810,7 @@ static ssize_t apds990x_prox_enable_show(struct device *dev,
				   struct device_attribute *attr, char *buf)
				   struct device_attribute *attr, char *buf)
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);

	return sprintf(buf, "%d\n", chip->prox_en);
	return sprintf(buf, "%d\n", chip->prox_en);
}
}


@@ -847,6 +851,7 @@ static ssize_t apds990x_prox_reporting_mode_show(struct device *dev,
				   struct device_attribute *attr, char *buf)
				   struct device_attribute *attr, char *buf)
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);

	return sprintf(buf, "%s\n",
	return sprintf(buf, "%s\n",
		reporting_modes[!!chip->prox_continuous_mode]);
		reporting_modes[!!chip->prox_continuous_mode]);
}
}
@@ -884,6 +889,7 @@ static ssize_t apds990x_lux_thresh_above_show(struct device *dev,
				   struct device_attribute *attr, char *buf)
				   struct device_attribute *attr, char *buf)
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);

	return sprintf(buf, "%d\n", chip->lux_thres_hi);
	return sprintf(buf, "%d\n", chip->lux_thres_hi);
}
}


@@ -891,6 +897,7 @@ static ssize_t apds990x_lux_thresh_below_show(struct device *dev,
				   struct device_attribute *attr, char *buf)
				   struct device_attribute *attr, char *buf)
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);

	return sprintf(buf, "%d\n", chip->lux_thres_lo);
	return sprintf(buf, "%d\n", chip->lux_thres_lo);
}
}


@@ -926,6 +933,7 @@ static ssize_t apds990x_lux_thresh_above_store(struct device *dev,
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_hi, buf);
	int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_hi, buf);

	if (ret < 0)
	if (ret < 0)
		return ret;
		return ret;
	return len;
	return len;
@@ -937,6 +945,7 @@ static ssize_t apds990x_lux_thresh_below_store(struct device *dev,
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_lo, buf);
	int ret = apds990x_set_lux_thresh(chip, &chip->lux_thres_lo, buf);

	if (ret < 0)
	if (ret < 0)
		return ret;
		return ret;
	return len;
	return len;
@@ -954,6 +963,7 @@ static ssize_t apds990x_prox_threshold_show(struct device *dev,
				   struct device_attribute *attr, char *buf)
				   struct device_attribute *attr, char *buf)
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);

	return sprintf(buf, "%d\n", chip->prox_thres);
	return sprintf(buf, "%d\n", chip->prox_thres);
}
}


@@ -1026,6 +1036,7 @@ static ssize_t apds990x_chip_id_show(struct device *dev,
				   struct device_attribute *attr, char *buf)
				   struct device_attribute *attr, char *buf)
{
{
	struct apds990x_chip *chip =  dev_get_drvdata(dev);
	struct apds990x_chip *chip =  dev_get_drvdata(dev);

	return sprintf(buf, "%s %d\n", chip->chipname, chip->revision);
	return sprintf(buf, "%s %d\n", chip->chipname, chip->revision);
}
}