device property: Implement device_is_big_endian()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 25 Oct 2023 18:42:57 +0000 (21:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 14:47:04 +0000 (15:47 +0100)
commit826a5d8c9df9605fb4fdefa45432f95580241a1f
tree9b9c8ab7978ae7da537e7da78f9c37e8a640dc94
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab
device property: Implement device_is_big_endian()

Some users want to use the struct device pointer to see if the
device is big endian in terms of Open Firmware specifications,
i.e. if it has a "big-endian" property, or if the kernel was
compiled for BE *and* the device has a "native-endian" property.

Provide inline helper for the users.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231025184259.250588-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/property.h