Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0870dbcb authored by Ashish Chavan's avatar Ashish Chavan
Browse files

power: battery: Add "cp" prefix to cp iio channel names



Add "cp" prefix to all cp iio channel names for readability.

Change-Id: I4dfabb861160906870988d4093fe73028d344c7b
Signed-off-by: default avatarAshish Chavan <ashichav@codeaurora.org>
parent 1a6f8ce5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -150,9 +150,9 @@ enum {

/* CP Channels */
static const char * const bat_cp_ext_iio_chan[] = {
	[BAT_CP_PARALLEL_MODE] = "parallel_mode",
	[BAT_CP_PARALLEL_OUTPUT_MODE] = "parallel_output_mode",
	[BAT_CP_MIN_ICL] = "min_icl",
	[BAT_CP_PARALLEL_MODE] = "cp_parallel_mode",
	[BAT_CP_PARALLEL_OUTPUT_MODE] = "cp_parallel_output_mode",
	[BAT_CP_MIN_ICL] = "cp_min_icl",
	[BAT_CP_SWITCHER_EN] = "cp_switcher_en",
};

+1 −1
Original line number Diff line number Diff line
@@ -431,7 +431,7 @@ enum smb5_iio_channels {
};

static const char * const cp_slave_iio_chans[] = {
	[CURRENT_CAPABILITY] = "current_capability",
	[CURRENT_CAPABILITY] = "cp_current_capability",
	[CP_ENABLE] = "cp_enable",
	[CP_INPUT_CURRENT_MAX] = "cp_input_current_max",
};
+1 −1
Original line number Diff line number Diff line
@@ -867,7 +867,7 @@ int smblib_set_aicl_cont_threshold(struct smb_chg_param *param,

/* CP channels */
static const char * const smblib_cp_ext_iio_chan[] = {
	[CP_PARALLEL_OUTPUT_MODE] = "parallel_output_mode",
	[CP_PARALLEL_OUTPUT_MODE] = "cp_parallel_output_mode",
	[CP_MASTER_ENABLE] = "cp_enable",
	[CP_ILIM] = "cp_ilim",
	[CP_DIE_TEMP] = "cp_die_temp",