Commit 68b3314d authored by Amit Kucheria's avatar Amit Kucheria Committed by Eduardo Valentin

drivers: thermal: tsens: Function prototypes should have argument names

check_patch complains a lot as follows:

WARNING: function definition argument 'struct tsens_priv *' should also have an identifier name
+       int (*init)(struct tsens_priv *);

Fix it.
Signed-off-by: default avatarAmit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 2cbcd2ea
...@@ -47,15 +47,15 @@ struct tsens_sensor { ...@@ -47,15 +47,15 @@ struct tsens_sensor {
*/ */
struct tsens_ops { struct tsens_ops {
/* mandatory callbacks */ /* mandatory callbacks */
int (*init)(struct tsens_priv *); int (*init)(struct tsens_priv *priv);
int (*calibrate)(struct tsens_priv *); int (*calibrate)(struct tsens_priv *priv);
int (*get_temp)(struct tsens_priv *, int, int *); int (*get_temp)(struct tsens_priv *priv, int i, int *temp);
/* optional callbacks */ /* optional callbacks */
int (*enable)(struct tsens_priv *, int); int (*enable)(struct tsens_priv *priv, int i);
void (*disable)(struct tsens_priv *); void (*disable)(struct tsens_priv *priv);
int (*suspend)(struct tsens_priv *); int (*suspend)(struct tsens_priv *priv);
int (*resume)(struct tsens_priv *); int (*resume)(struct tsens_priv *priv);
int (*get_trend)(struct tsens_priv *, int, enum thermal_trend *); int (*get_trend)(struct tsens_priv *priv, int i, enum thermal_trend *trend);
}; };
enum reg_list { enum reg_list {
...@@ -111,10 +111,10 @@ struct tsens_priv { ...@@ -111,10 +111,10 @@ struct tsens_priv {
struct tsens_sensor sensor[0]; struct tsens_sensor sensor[0];
}; };
char *qfprom_read(struct device *, const char *); char *qfprom_read(struct device *dev, const char *cname);
void compute_intercept_slope(struct tsens_priv *, u32 *, u32 *, u32); void compute_intercept_slope(struct tsens_priv *priv, u32 *pt1, u32 *pt2, u32 mode);
int init_common(struct tsens_priv *); int init_common(struct tsens_priv *priv);
int get_temp_common(struct tsens_priv *, int, int *); int get_temp_common(struct tsens_priv *priv, int i, int *temp);
/* TSENS v1 targets */ /* TSENS v1 targets */
extern const struct tsens_plat_data data_8916, data_8974, data_8960; extern const struct tsens_plat_data data_8916, data_8974, data_8960;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment