Russell King
42d040e2c7
thermal: armada: fix legacy validity test sense
...
[ Upstream commit 70bb27b79a ]
Commit 8c0e64ac40 ("thermal: armada: get rid of the ->is_valid()
pointer") removed the unnecessary indirection through a function
pointer, but in doing so, also removed the negation operator too:
- if (priv->data->is_valid && !priv->data->is_valid(priv)) {
+ if (armada_is_valid(priv)) {
which results in:
armada_thermal f06f808c.thermal: Temperature sensor reading not valid
armada_thermal f2400078.thermal: Temperature sensor reading not valid
armada_thermal f4400078.thermal: Temperature sensor reading not valid
at boot, or whenever the "temp" sysfs file is read. Replace the
negation operator.
Fixes: 8c0e64ac40 ("thermal: armada: get rid of the ->is_valid() pointer")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk >
Signed-off-by: Eduardo Valentin <edubezval@gmail.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2018-12-21 14:15:22 +01:00
..
2018-12-17 09:24:40 +01:00
2018-12-05 19:32:11 +01:00
2018-12-21 14:15:20 +01:00
2018-08-18 11:04:51 -07:00
2018-10-07 08:15:57 +02:00
2018-12-01 09:37:32 +01:00
2018-11-13 11:08:25 -08:00
2018-08-28 09:58:03 -07:00
2018-11-21 09:19:12 +01:00
2018-11-13 11:08:48 -08:00
2018-12-21 14:15:19 +01:00
2018-11-21 09:19:20 +01:00
2018-12-13 09:16:13 +01:00
2018-11-21 09:19:23 +01:00
2018-11-21 09:19:17 +01:00
2018-09-22 09:07:33 -07:00
2018-08-18 11:04:51 -07:00
2018-12-13 09:16:20 +01:00
2018-11-13 11:08:44 -08:00
2018-08-17 16:20:27 -07:00
2018-12-01 09:37:33 +01:00
2018-09-30 08:49:55 -07:00
2018-12-17 09:24:35 +01:00
2018-12-13 09:16:22 +01:00
2018-12-13 09:16:12 +01:00
2018-12-21 14:15:19 +01:00
2018-12-21 14:15:12 +01:00
2018-12-13 09:16:22 +01:00
2018-12-17 09:24:33 +01:00
2018-11-13 11:08:36 -08:00
2018-12-21 14:15:12 +01:00
2018-12-21 14:15:18 +01:00
2018-12-05 19:32:13 +01:00
2018-12-21 14:15:12 +01:00
2018-12-21 14:15:20 +01:00
2018-12-13 09:16:14 +01:00
2018-11-13 11:08:34 -08:00
2018-08-16 12:26:24 -07:00
2018-11-13 11:08:21 -08:00
2018-08-24 14:42:42 +02:00
2018-11-13 11:08:18 -08:00
2018-12-19 19:19:53 +01:00
2018-12-19 19:19:52 +01:00
2018-09-06 10:04:07 -07:00
2018-12-13 09:16:17 +01:00
2018-12-05 19:32:14 +01:00
2018-12-19 19:19:51 +01:00
2018-12-13 09:16:13 +01:00
2018-10-12 17:36:39 +02:00
2018-12-21 14:15:21 +01:00
2018-11-13 11:08:48 -08:00
2018-12-13 09:16:22 +01:00
2018-12-17 09:24:40 +01:00
2018-11-13 11:08:35 -08:00
2018-11-27 16:13:05 +01:00
2018-12-01 09:37:27 +01:00
2018-08-18 11:04:51 -07:00
2018-12-17 09:24:33 +01:00
2018-11-13 11:08:17 -08:00
2018-10-12 15:25:17 +01:00
2018-12-17 09:24:34 +01:00
2018-12-19 19:19:50 +01:00
2018-11-27 16:13:00 +01:00
2018-11-13 11:08:51 -08:00
2018-10-17 22:00:22 -07:00
2018-08-20 11:36:07 +02:00
2018-08-22 10:52:51 -07:00
2018-09-20 09:04:51 -07:00
2018-11-13 11:08:52 -08:00
2018-08-25 14:12:36 -07:00
2018-11-13 11:08:55 -08:00
2018-12-05 19:32:13 +01:00
2018-12-17 09:24:31 +01:00
2018-12-21 14:15:17 +01:00
2018-12-21 14:15:13 +01:00
2018-12-19 19:19:49 +01:00
2018-11-21 09:19:18 +01:00
2018-08-27 09:49:48 +05:30
2018-12-17 09:24:32 +01:00
2018-12-19 19:19:49 +01:00
2018-11-13 11:08:42 -08:00
2018-11-13 11:08:51 -08:00
2018-08-23 13:52:46 -07:00
2018-12-21 14:15:22 +01:00
2018-12-17 09:24:36 +01:00
2018-12-21 14:15:18 +01:00
2018-11-27 16:13:09 +01:00
2018-12-17 09:24:38 +01:00
2018-08-17 11:32:50 -07:00
2018-12-13 09:16:19 +01:00
2018-11-21 09:19:17 +01:00
2018-08-24 08:45:19 -07:00
2018-11-13 11:08:48 -08:00
2018-08-22 17:31:34 -07:00
2018-12-17 09:24:39 +01:00
2018-08-18 11:04:51 -07:00