Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: ad525x_dpot: Prefer 'unsigned int' to bare use of 'unsigned'

Resolved all the Prefer 'unsigned int' to bare use of 'unsigned'
checkpatch warnings. Issue found by checkpatch.

Signed-off-by: Dhaval Shah <dhaval.shah@softnautics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dhaval Shah and committed by
Greg Kroah-Hartman
d06d101b ef7e69fc

+11 -11
+11 -11
drivers/misc/ad525x_dpot.c
··· 84 84 struct dpot_data { 85 85 struct ad_dpot_bus_data bdata; 86 86 struct mutex update_lock; 87 - unsigned rdac_mask; 88 - unsigned max_pos; 87 + unsigned int rdac_mask; 88 + unsigned int max_pos; 89 89 unsigned long devid; 90 - unsigned uid; 91 - unsigned feat; 92 - unsigned wipers; 90 + unsigned int uid; 91 + unsigned int feat; 92 + unsigned int wipers; 93 93 u16 rdac_cache[MAX_RDACS]; 94 94 DECLARE_BITMAP(otp_en_mask, MAX_RDACS); 95 95 }; ··· 126 126 127 127 static s32 dpot_read_spi(struct dpot_data *dpot, u8 reg) 128 128 { 129 - unsigned ctrl = 0; 129 + unsigned int ctrl = 0; 130 130 int value; 131 131 132 132 if (!(reg & (DPOT_ADDR_EEPROM | DPOT_ADDR_CMD))) { ··· 175 175 static s32 dpot_read_i2c(struct dpot_data *dpot, u8 reg) 176 176 { 177 177 int value; 178 - unsigned ctrl = 0; 178 + unsigned int ctrl = 0; 179 179 180 180 switch (dpot->uid) { 181 181 case DPOT_UID(AD5246_ID): ··· 238 238 239 239 static s32 dpot_write_spi(struct dpot_data *dpot, u8 reg, u16 value) 240 240 { 241 - unsigned val = 0; 241 + unsigned int val = 0; 242 242 243 243 if (!(reg & (DPOT_ADDR_EEPROM | DPOT_ADDR_CMD | DPOT_ADDR_OTP))) { 244 244 if (dpot->feat & F_RDACS_WONLY) ··· 328 328 static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value) 329 329 { 330 330 /* Only write the instruction byte for certain commands */ 331 - unsigned tmp = 0, ctrl = 0; 331 + unsigned int tmp = 0, ctrl = 0; 332 332 333 333 switch (dpot->uid) { 334 334 case DPOT_UID(AD5246_ID): ··· 636 636 }; 637 637 638 638 static int ad_dpot_add_files(struct device *dev, 639 - unsigned features, unsigned rdac) 639 + unsigned int features, unsigned int rdac) 640 640 { 641 641 int err = sysfs_create_file(&dev->kobj, 642 642 dpot_attrib_wipers[rdac]); ··· 661 661 } 662 662 663 663 static inline void ad_dpot_remove_files(struct device *dev, 664 - unsigned features, unsigned rdac) 664 + unsigned int features, unsigned int rdac) 665 665 { 666 666 sysfs_remove_file(&dev->kobj, 667 667 dpot_attrib_wipers[rdac]);