diff options
author | Sudeep Holla <[email protected]> | 2018-04-06 16:30:47 +0100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2018-04-22 19:39:55 -0700 |
commit | f18a36cf3f31dce633fe2a93d0059008bb21d9f2 (patch) | |
tree | 5a4e4154db998158f9c5945fac88b19ffd2e711f /lib/memory-notifier-error-inject.c | |
parent | 6d08b06e67cd117f6992c46611dfb4ce267cd71e (diff) |
hwmon: (scmi) handle absence of few types of sensors
Currently the loop checks for non-zero count of sensors for each type
of sensors which is completely wrong. It also results in aborting the
registration of sensors if one or more types of sensors are completely
not supported by the platform SCMI firmware.
This patch fixes the issue by continue to loop and skiping sensor types
that are not present.
Fixes: b23688aefb8b ("hwmon: add support for sensors exported via ARM SCMI")
Reported-by: Jim Quinlan <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: [email protected]
Signed-off-by: Sudeep Holla <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions