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

Commit 3c040ce0 authored by Amit Kucheria's avatar Amit Kucheria Committed by Eduardo Valentin
Browse files

drivers: thermal: tsens: Rename tsens_data



Rename to tsens_plat_data to denote that it is platform-data passed in
at compile-time.

Signed-off-by: default avatarAmit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 20a7a2db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ static const struct tsens_ops ops_8916 = {
	.get_temp	= get_temp_common,
};

const struct tsens_data data_8916 = {
const struct tsens_plat_data data_8916 = {
	.num_sensors	= 5,
	.ops		= &ops_8916,
	.reg_offsets	= { [SROT_CTRL_OFFSET] = 0x0 },
+1 −1
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ static const struct tsens_ops ops_8960 = {
	.resume		= resume_8960,
};

const struct tsens_data data_8960 = {
const struct tsens_plat_data data_8960 = {
	.num_sensors	= 11,
	.ops		= &ops_8960,
};
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ static const struct tsens_ops ops_8974 = {
	.get_temp	= get_temp_common,
};

const struct tsens_data data_8974 = {
const struct tsens_plat_data data_8974 = {
	.num_sensors	= 11,
	.ops		= &ops_8974,
	.reg_offsets	= { [SROT_CTRL_OFFSET] = 0x0 },
+2 −2
Original line number Diff line number Diff line
@@ -66,13 +66,13 @@ static const struct tsens_ops ops_generic_v2 = {
	.get_temp	= get_temp_tsens_v2,
};

const struct tsens_data data_tsens_v2 = {
const struct tsens_plat_data data_tsens_v2 = {
	.ops            = &ops_generic_v2,
	.reg_offsets	= { [SROT_CTRL_OFFSET] = 0x4 },
};

/* Kept around for backward compatibility with old msm8996.dtsi */
const struct tsens_data data_8996 = {
const struct tsens_plat_data data_8996 = {
	.num_sensors	= 13,
	.ops		= &ops_generic_v2,
	.reg_offsets	= { [SROT_CTRL_OFFSET] = 0x4 },
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ static int tsens_probe(struct platform_device *pdev)
	struct device *dev;
	struct device_node *np;
	struct tsens_device *tmdev;
	const struct tsens_data *data;
	const struct tsens_plat_data *data;
	const struct of_device_id *id;
	u32 num_sensors;

Loading