From: Amit Kucheria Date: Wed, 20 Mar 2019 13:17:45 +0000 (+0530) Subject: drivers: thermal: tsens: Use consistent names for variables X-Git-Tag: v5.2-rc1~47^2~42 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2cbcd2eab01b28148ebc21c1821a7f8187a923f4;p=users%2Fjedix%2Flinux-maple.git drivers: thermal: tsens: Use consistent names for variables tsens_get_temp() uses the name 'data' for the void pointer, use the same in tsens_get_trend() for consistency. Remove a stray space while we're at it. Signed-off-by: Amit Kucheria Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 4582d2b30e94a..0b5be08d515fa 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -20,13 +20,13 @@ static int tsens_get_temp(void *data, int *temp) return priv->ops->get_temp(priv, s->id, temp); } -static int tsens_get_trend(void *p, int trip, enum thermal_trend *trend) +static int tsens_get_trend(void *data, int trip, enum thermal_trend *trend) { - const struct tsens_sensor *s = p; + const struct tsens_sensor *s = data; struct tsens_priv *priv = s->priv; if (priv->ops->get_trend) - return priv->ops->get_trend(priv, s->id, trend); + return priv->ops->get_trend(priv, s->id, trend); return -ENOTSUPP; }