mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	hwmon: (ina238) Constify struct regmap_config
`ina238_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://lore.kernel.org/r/20240702-hwmon-const-regmap-v1-1-63f6d4765fe0@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
		
							parent
							
								
									39b24cced7
								
							
						
					
					
						commit
						9d047eb05c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -96,7 +96,7 @@ | |||
| #define INA238_BUS_VOLTAGE_LSB		3125 /* 3.125 mV/lsb */ | ||||
| #define INA238_DIE_TEMP_LSB		125 /* 125 mC/lsb */ | ||||
| 
 | ||||
| static struct regmap_config ina238_regmap_config = { | ||||
| static const struct regmap_config ina238_regmap_config = { | ||||
| 	.max_register = INA238_REGISTERS, | ||||
| 	.reg_bits = 8, | ||||
| 	.val_bits = 16, | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Javier Carrasco
						Javier Carrasco