kernel_optimize_test/drivers/of
Rafael J. Wysocki b31384fa5d Driver core: Unified device properties interface for platform firmware
Add a uniform interface by which device drivers can request device
properties from the platform firmware by providing a property name
and the corresponding data type.  The purpose of it is to help to
write portable code that won't depend on any particular platform
firmware interface.

The following general helper functions are added:

device_property_present()
device_property_read_u8()
device_property_read_u16()
device_property_read_u32()
device_property_read_u64()
device_property_read_string()
device_property_read_u8_array()
device_property_read_u16_array()
device_property_read_u32_array()
device_property_read_u64_array()
device_property_read_string_array()

The first one allows the caller to check if the given property is
present.  The next 5 of them allow single-valued properties of
various types to be retrieved in a uniform way.  The remaining 5 are
for reading properties with multiple values (arrays of either numbers
or strings).

The interface covers both ACPI and Device Trees.

This change set includes material from Mika Westerberg and Aaron Lu.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-11-04 21:58:21 +01:00
..
testcase-data of: Fix overflow bug in string property parsing functions 2014-11-04 10:19:48 +00:00
address.c
base.c Driver core: Unified device properties interface for platform firmware 2014-11-04 21:58:21 +01:00
device.c
dynamic.c
fdt_address.c
fdt.c
irq.c
Kconfig
Makefile
of_mdio.c
of_mtd.c
of_net.c
of_pci_irq.c
of_pci.c
of_private.h
of_reserved_mem.c drivers: of: add return value to of_reserved_mem_device_init() 2014-10-29 16:33:14 -07:00
pdt.c
platform.c
resolver.c
selftest.c of: Fix overflow bug in string property parsing functions 2014-11-04 10:19:48 +00:00