drivers: regulator: pca9420: fix voltage|current_range types

- voltage/current needs to be stored using int32_t
- reg_val is a 8-bit unsigned register value
- Also removed __packet, it is not required here

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-11-14 15:40:42 +01:00 committed by Carles Cufí
commit ac7c8c810a

View file

@ -14,14 +14,14 @@
LOG_MODULE_REGISTER(pca9420, CONFIG_REGULATOR_LOG_LEVEL);
struct __packed voltage_range {
int uV; /* Voltage in uV */
int reg_val; /* Register value for voltage */
struct voltage_range {
int32_t uV; /* Voltage in uV */
uint8_t reg_val; /* Register value for voltage */
};
struct __packed current_range {
int uA; /* Current limit in uA */
int reg_val; /* Register value for current limit */
struct current_range {
int32_t uA; /* Current limit in uA */
uint8_t reg_val; /* Register value for current limit */
};
struct regulator_pca9420_data {