]> asedeno.scripts.mit.edu Git - linux.git/commit
cpufreq: scmi: Match scmi device by both name and protocol id
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 6 Nov 2019 17:56:25 +0000 (17:56 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 24 Dec 2019 11:36:26 +0000 (11:36 +0000)
commit12b7662618efd08486c00fbfd98222e16c248c04
tree15bd379ba05510efc6adb6568d10c6158d65ee34
parent43998dfe24c19c2b29db64ae2b99e51e6c018aba
cpufreq: scmi: Match scmi device by both name and protocol id

The scmi bus now has support to match the driver with devices not only
based on their protocol id but also based on their device name if one is
available. This was added to cater the need to support multiple devices
and drivers for the same protocol.

Let us add the name "cpufreq" to scmi_device_id table in the driver so
that in matches only with device with the same name and protocol id
SCMI_PROTOCOL_PERF. This will help to add "devfreq" device/driver.

Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/cpufreq/scmi-cpufreq.c