Skip to content

Commit

Permalink
hwmon: (nct7904) Fix UNSPECIFIED_INT warning
Browse files Browse the repository at this point in the history
Fix UNSPECIFIED_INT warning reported by checkpatch.pl

Signed-off-by: Lorenz Kaestle <lorenz.kaestle@fau.de>
Signed-off-by: Jakob Albert <jakob.j.albert@fau.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Jakob Albert authored and Guenter Roeck committed Jul 9, 2018
1 parent 12f0c34 commit 73ed6e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/hwmon/nct7904.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct nct7904_data {
};

/* 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;

Expand All @@ -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. */
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;
int ret;
Expand All @@ -117,7 +117,7 @@ static int nct7904_read_reg(struct nct7904_data *data,
* -ERRNO on error.
*/
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;
int ret, hi;
Expand All @@ -139,7 +139,7 @@ static int nct7904_read_reg16(struct nct7904_data *data,

/* Write 1-byte register. Returns 0 or -ERRNO on error. */
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;
int ret;
Expand Down

0 comments on commit 73ed6e2

Please sign in to comment.