From 8fbf5cbdaf1feba9b536ba044a1650b1680ed6de Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 28 Jan 2017 16:24:36 -0500 Subject: [PATCH] astyle src/drivers/device --- src/drivers/device/device_nuttx.h | 10 +++++----- src/drivers/device/vdev.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/drivers/device/device_nuttx.h b/src/drivers/device/device_nuttx.h index 706f5bd134..9786b590b3 100644 --- a/src/drivers/device/device_nuttx.h +++ b/src/drivers/device/device_nuttx.h @@ -162,12 +162,12 @@ public: */ struct DeviceStructure { enum DeviceBusType bus_type : 3; - uint8_t bus: 5; // which instance of the bus type - uint8_t address; // address on the bus (eg. I2C address) - uint8_t devtype; // device class specific device type - }; + uint8_t bus: 5; // which instance of the bus type + uint8_t address; // address on the bus (eg. I2C address) + uint8_t devtype; // device class specific device type + }; - union DeviceId { + union DeviceId { struct DeviceStructure devid_s; uint32_t devid; }; diff --git a/src/drivers/device/vdev.h b/src/drivers/device/vdev.h index 571f296d15..280cdc9ad9 100644 --- a/src/drivers/device/vdev.h +++ b/src/drivers/device/vdev.h @@ -149,12 +149,12 @@ public: */ struct DeviceStructure { enum DeviceBusType bus_type : 3; - uint8_t bus: 5; // which instance of the bus type - uint8_t address; // address on the bus (eg. I2C address) - uint8_t devtype; // device class specific device type - }; + uint8_t bus: 5; // which instance of the bus type + uint8_t address; // address on the bus (eg. I2C address) + uint8_t devtype; // device class specific device type + }; - union DeviceId { + union DeviceId { struct DeviceStructure devid_s; uint32_t devid; };