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

Commit 17be30cb authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Eduardo Valentin
Browse files

thermal: exynos: remove TMU_SUPPORT_MULTI_INST flag



Remove unused TMU_SUPPORT_MULTI_INST flag, no longer
needed TMU_SUPPORTS() macro and features field from
struct exynos_tmu_platform_data.

There should be no functional changes caused by this patch.

Cc: Amit Daniel Kachhap <amit.daniel@samsung.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Tested-by: default avatarLukasz Majewski <l.majewski@samsung.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 56adb9ef
Loading
Loading
Loading
Loading
+0 −13
Original line number Original line Diff line number Diff line
@@ -45,16 +45,6 @@ enum soc_type {
	SOC_ARCH_EXYNOS5440,
	SOC_ARCH_EXYNOS5440,
};
};


/**
 * EXYNOS TMU supported features.
 * TMU_SUPPORT_MULTI_INST - This features denotes that the soc
 *			has many instances of TMU.
 * TMU_SUPPORT - macro to compare the above features with the supplied.
 */
#define TMU_SUPPORT_MULTI_INST			BIT(0)

#define TMU_SUPPORTS(a, b)	(a->features & TMU_SUPPORT_ ## b)

/**
/**
 * struct exynos_tmu_platform_data
 * struct exynos_tmu_platform_data
 * @threshold: basic temperature for generating interrupt
 * @threshold: basic temperature for generating interrupt
@@ -104,8 +94,6 @@ enum soc_type {
 * @freq_clip_table: Table representing frequency reduction percentage.
 * @freq_clip_table: Table representing frequency reduction percentage.
 * @freq_tab_count: Count of the above table as frequency reduction may
 * @freq_tab_count: Count of the above table as frequency reduction may
 *	applicable to only some of the trigger levels.
 *	applicable to only some of the trigger levels.
 * @features: a bitfield value indicating the features supported in SOC like
 *	emulation, multi instance etc
 *
 *
 * This structure is required for configuration of exynos_tmu driver.
 * This structure is required for configuration of exynos_tmu driver.
 */
 */
@@ -133,7 +121,6 @@ struct exynos_tmu_platform_data {
	enum soc_type type;
	enum soc_type type;
	struct freq_clip_table freq_tab[4];
	struct freq_clip_table freq_tab[4];
	unsigned int freq_tab_count;
	unsigned int freq_tab_count;
	unsigned int features;
};
};


/**
/**
+1 −2
Original line number Original line Diff line number Diff line
@@ -308,8 +308,7 @@ struct exynos_tmu_init_data const exynos5420_default_tmu_data = {
	.first_point_trim = 25, \
	.first_point_trim = 25, \
	.second_point_trim = 70, \
	.second_point_trim = 70, \
	.default_temp_offset = 25, \
	.default_temp_offset = 25, \
	.type = SOC_ARCH_EXYNOS5440, \
	.type = SOC_ARCH_EXYNOS5440
	.features = TMU_SUPPORT_MULTI_INST,


struct exynos_tmu_init_data const exynos5440_default_tmu_data = {
struct exynos_tmu_init_data const exynos5440_default_tmu_data = {
	.tmu_data = {
	.tmu_data = {