linux/drivers/firmware/arm_scmi
Sudeep Holla 907b6d1491 firmware: arm_scmi: add per-protocol channels support using idr objects
In order to maintain the channel information per protocol, we need
some sort of list or hashtable to hold all this information. IDR
provides sparse array mapping of small integer ID numbers onto arbitrary
pointers. In this case the arbitrary pointers can be pointers to the
channel information.

This patch adds support for per-protocol channels using those idr
objects.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2018-02-28 16:37:57 +00:00
..
base.c firmware: arm_scmi: add common infrastructure and support for base protocol 2018-02-28 16:37:57 +00:00
bus.c firmware: arm_scmi: add scmi protocol bus to enumerate protocol devices 2018-02-28 16:37:57 +00:00
clock.c firmware: arm_scmi: add initial support for clock protocol 2018-02-28 16:37:57 +00:00
common.h firmware: arm_scmi: add initial support for performance protocol 2018-02-28 16:37:57 +00:00
driver.c firmware: arm_scmi: add per-protocol channels support using idr objects 2018-02-28 16:37:57 +00:00
Makefile firmware: arm_scmi: add initial support for sensor protocol 2018-02-28 16:37:57 +00:00
perf.c firmware: arm_scmi: add option for polling based performance domain operations 2018-02-28 16:37:57 +00:00
power.c firmware: arm_scmi: add initial support for power protocol 2018-02-28 16:37:57 +00:00
sensors.c firmware: arm_scmi: add initial support for sensor protocol 2018-02-28 16:37:57 +00:00