42 dbg_print(
"Reading description from info subdevice with id %d\n", subdev->
id);
46 if(
flink_read(subdev, offset, 4, &data) != REGISTER_WITH) {
50 for (k = REGISTER_WITH - 1; k >= 0; k--) {
51 *((uint8_t *)desc) = (uint8_t)(data >> (k * 8));
Data structures for flink devices and subdevices.
ssize_t flink_read(flink_subdev *subdev, uint32_t offset, uint8_t size, void *rdata)
Read from a flink subdevice.
int flink_info_get_description(flink_subdev *subdev, char *desc)
Reads the description field of an info subdevice.
#define dbg_print(fmt,...)