Lines Matching +full:board +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0+
9 #include <board.h>
20 if (!ops->detect) in board_detect()
21 return -ENOSYS; in board_detect()
23 return ops->detect(dev); in board_detect()
26 int board_get_bool(struct udevice *dev, int id, bool *val) in board_get_bool() argument
30 if (!ops->get_bool) in board_get_bool()
31 return -ENOSYS; in board_get_bool()
33 return ops->get_bool(dev, id, val); in board_get_bool()
36 int board_get_int(struct udevice *dev, int id, int *val) in board_get_int() argument
40 if (!ops->get_int) in board_get_int()
41 return -ENOSYS; in board_get_int()
43 return ops->get_int(dev, id, val); in board_get_int()
46 int board_get_str(struct udevice *dev, int id, size_t size, char *val) in board_get_str() argument
50 if (!ops->get_str) in board_get_str()
51 return -ENOSYS; in board_get_str()
53 return ops->get_str(dev, id, size, val); in board_get_str()
56 UCLASS_DRIVER(board) = {
57 .id = UCLASS_BOARD,
58 .name = "board",