mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 09:13:38 +00:00
iio: tmag5273: Remove some unused field in struct tmag5273_data
In "struct tmag5273_data", the 'scale' and 'vcc' fields are unused. Remove them. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Gerald Loacker <gerald.loacker@wolfvision.net> Link: https://lore.kernel.org/r/7bd16d7fea12c64b6b3dc3cd32839cfce145bcf3.1714562912.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
2625b8eacc
commit
e1c313e047
@ -118,11 +118,9 @@ struct tmag5273_data {
|
||||
unsigned int version;
|
||||
char name[16];
|
||||
unsigned int conv_avg;
|
||||
unsigned int scale;
|
||||
enum tmag5273_scale_index scale_index;
|
||||
unsigned int angle_measurement;
|
||||
struct regmap *map;
|
||||
struct regulator *vcc;
|
||||
|
||||
/*
|
||||
* Locks the sensor for exclusive use during a measurement (which
|
||||
|
Loading…
Reference in New Issue
Block a user