ACPI: thermal: remove const from thermal_zone_device_ops declaration
Subsystems (3)
PATCH 1/1 ACPI: thermal: remove const from thermal_zone_device_ops declaration
The following commit introduced the requirement to not declare thermal_zone_device_ops structs as const in order to allow changing the .get_temp callback.
commit 4e5e4705bf69ea450f58fc709ac5888f321a9299
Author: Eduardo Valentin <[email protected]> Date: Wed Jul 3 15:35:39 2013 -0400
thermal: introduce device tree parser
--- drivers/acpi/thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/thermal.c +1 -1
@@ -861,7 +861,7 @@ acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal,return acpi_thermal_cooling_device_cb (thermal, cdev, false); } -static const struct thermal_zone_device_ops acpi_thermal_zone_ops = { +static struct thermal_zone_device_ops acpi_thermal_zone_ops = { .bind = acpi_thermal_bind_cooling_device, .unbind = acpi_thermal_unbind_cooling_device, .get_temp = thermal_get_temp,
Signature · 1 line
1.7.10.4
Quoted 11 lines · Emil Goode
The following commit introduced the requirement to not declare
thermal_zone_device_opsstructs as const in order to allow changing the .get_temp callback.commit
4e5e4705bf69ea450f58fc709ac5888f321a9299Author: Eduardo Valentin <[email protected]> Date: Wed Jul 3 15:35:39 2013 -0400thermal: introduce device tree parser
Signed-off-by Emil Goode <[email protected]>
Quoted 18 lines
--- drivers/acpi/thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/thermal.c +1
-1@@ -861,7 +861,7 @@ acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal,return acpi_thermal_cooling_device_cb (thermal, cdev, false); } -static const struct thermal_zone_device_ops acpi_thermal_zone_ops = { +static struct thermal_zone_device_ops acpi_thermal_zone_ops = { .bind = acpi_thermal_bind_cooling_device, .unbind = acpi_thermal_unbind_cooling_device, .get_temp = thermal_get_temp,
Signature · 3 lines
You have got to be excited about what you are doing. (L. Lamport) Eduardo Valentin
Rafael J. Wysocki
AppliedQuoted 18 lines · Eduardo Valentin
--d38TXoq0sN4NKSKSmrSA0nrfhHhs3Hefk
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printableQuoted 11 lines · Emil Goode
The following commit introduced the requirement to not declare
thermal_zone_device_opsstructs as const in order to allow changing the .get_temp callback.
=20
commit4e5e4705bf69ea450f58fc709ac5888f321a9299Author: Eduardo Valentin <[email protected]> Date: Wed Jul 3 15:35:39 2013 -0400=20
thermal: introduce device tree parser
=20Signed-off-by Emil Goode <[email protected]>
Quoted 1 line
Acked-by Eduardo Valentin <[email protected]>
Queued up for 3.14, thanks!
Quoted 48 lines
drivers/acpi/thermal.c acpi_thermal_unbind_cooling_device(struct thermal_z=
Quoted 9 lines
--- drivers/acpi/thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)=20
drivers/acpi/thermal.c +0
-0@@ -861,7 +861,7 @@ acpi_thermal_unbind_cooling_device(struct thermal_z=
one_device*thermal,Quoted 4 lines
drivers/acpi/thermal.c +0
-0return acpi_thermal_cooling_device_cb (thermal, cdev, false); }=20
-static const structthermal_zone_device_opsacpi_thermal_zone_ops=3D ={
Quoted 5 lines
drivers/acpi/thermal.c +1
-0+static struct thermal_zone_device_ops acpi_thermal_zone_ops =3D { .bind =3D acpi_thermal_bind_cooling_device, .unbind =3D acpi_thermal_unbind_cooling_device, .get_temp =3D thermal_get_temp,=20
--=20
You have got to be excited about what you are doing. (L. Lamport)Eduardo Valentin
--d38TXoq0sN4NKSKSmrSA0nrfhHhs3Hefk
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/iF4EAREIAAYFAlLMjvIACgkQCXcVR3XQvP3L6gD7B2J7f2SUQuZhpShZH/GNtjUm 66MHYjXagUB6rDRkCAQA/3/Hh35+smtAZvxKm/IX45BOmyC/z3qMulmA6Alsy52I =Cuu1
-----END PGP SIGNATURE-------d38TXoq0sN4NKSKSmrSA0nrfhHhs3Hefk--
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.