[PATCH AUTOSEL for 4.15 093/189] device property: Define type of PROPERTY_ENRTY_*() macros

2018-04-08 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit c505cbd45f6e9c539d57dd171d95ec7e5e9f9cd0 ] Some of the drivers may use the macro at runtime flow, like struct property_entry p[10]; ... p[index++] = PROPERTY_ENTRY_U8("u8 property", u8_data); In that case and

[PATCH AUTOSEL for 4.15 093/189] device property: Define type of PROPERTY_ENRTY_*() macros

2018-04-08 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit c505cbd45f6e9c539d57dd171d95ec7e5e9f9cd0 ] Some of the drivers may use the macro at runtime flow, like struct property_entry p[10]; ... p[index++] = PROPERTY_ENTRY_U8("u8 property", u8_data); In that case and absence of the data type compiler fails