device: restore init_res bit field
After b5f3cf8006
some platforms
(qemu_riscv32_xip) are not able to boot. Re-introduce the bit field for
init_res, using `unsigned int` (valids are signed/unsigned int, and
bool).
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
2230857a44
commit
c109491f1a
|
@ -354,9 +354,9 @@ struct device_state {
|
|||
*
|
||||
* Device initialization functions return a negative errno code if they
|
||||
* fail. In Zephyr, errno values do not exceed 255, so we can store the
|
||||
* positive result value in a uint8_t type.
|
||||
* positive result value using 8 bits.
|
||||
*/
|
||||
uint8_t init_res;
|
||||
unsigned int init_res : 8;
|
||||
|
||||
/** Indicates the device initialization function has been
|
||||
* invoked.
|
||||
|
|
Loading…
Reference in a new issue