Message ID | 5e7a7b9f-44c2-82c2-eb17-ee54efd15503@rock-chips.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/include/linux/property.h +++ b/include/linux/property.h @@ -108,6 +108,13 @@ static inline int device_property_read_u32(struct device *dev, return device_property_read_u32_array(dev, propname, val, 1); } +static inline int device_property_read_s32_array(struct device *dev, const char *propname, + s32 *val, size_t nval) +{ + return device_property_read_u32_array(struct device *dev, const char *propname, + (u32 *)val, size_t nval); +}