Commit 73ed6e22 authored by Jakob Albert's avatar Jakob Albert Committed by Guenter Roeck

hwmon: (nct7904) Fix UNSPECIFIED_INT warning

Fix UNSPECIFIED_INT warning reported by checkpatch.pl
Signed-off-by: default avatarLorenz Kaestle <lorenz.kaestle@fau.de>
Signed-off-by: default avatarJakob Albert <jakob.j.albert@fau.de>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 12f0c340
...@@ -77,7 +77,7 @@ struct nct7904_data { ...@@ -77,7 +77,7 @@ struct nct7904_data {
}; };
/* Access functions */ /* Access functions */
static int nct7904_bank_lock(struct nct7904_data *data, unsigned bank) static int nct7904_bank_lock(struct nct7904_data *data, unsigned int bank)
{ {
int ret; int ret;
...@@ -99,7 +99,7 @@ static inline void nct7904_bank_release(struct nct7904_data *data) ...@@ -99,7 +99,7 @@ static inline void nct7904_bank_release(struct nct7904_data *data)
/* Read 1-byte register. Returns unsigned reg or -ERRNO on error. */ /* Read 1-byte register. Returns unsigned reg or -ERRNO on error. */
static int nct7904_read_reg(struct nct7904_data *data, static int nct7904_read_reg(struct nct7904_data *data,
unsigned bank, unsigned reg) unsigned int bank, unsigned int reg)
{ {
struct i2c_client *client = data->client; struct i2c_client *client = data->client;
int ret; int ret;
...@@ -117,7 +117,7 @@ static int nct7904_read_reg(struct nct7904_data *data, ...@@ -117,7 +117,7 @@ static int nct7904_read_reg(struct nct7904_data *data,
* -ERRNO on error. * -ERRNO on error.
*/ */
static int nct7904_read_reg16(struct nct7904_data *data, static int nct7904_read_reg16(struct nct7904_data *data,
unsigned bank, unsigned reg) unsigned int bank, unsigned int reg)
{ {
struct i2c_client *client = data->client; struct i2c_client *client = data->client;
int ret, hi; int ret, hi;
...@@ -139,7 +139,7 @@ static int nct7904_read_reg16(struct nct7904_data *data, ...@@ -139,7 +139,7 @@ static int nct7904_read_reg16(struct nct7904_data *data,
/* Write 1-byte register. Returns 0 or -ERRNO on error. */ /* Write 1-byte register. Returns 0 or -ERRNO on error. */
static int nct7904_write_reg(struct nct7904_data *data, static int nct7904_write_reg(struct nct7904_data *data,
unsigned bank, unsigned reg, u8 val) unsigned int bank, unsigned int reg, u8 val)
{ {
struct i2c_client *client = data->client; struct i2c_client *client = data->client;
int ret; int ret;
......
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