Avoid C-style cast warnings am: cc8d9f9fcb am: ac416b9ed3 am: 9a786a3044

am: 2b932a434e

Change-Id: I6678be57a6905f7c0e490d4b55874107bf8d6e6d
This commit is contained in:
Colin Cross
2016-10-08 01:07:21 +00:00
committed by android-build-merger
17 changed files with 23 additions and 17 deletions

View File

@@ -1395,7 +1395,7 @@ typedef struct sensors_poll_device_1 {
static inline int sensors_open(const struct hw_module_t* module,
struct sensors_poll_device_t** device) {
return module->methods->open(module,
SENSORS_HARDWARE_POLL, (struct hw_device_t**)device);
SENSORS_HARDWARE_POLL, TO_HW_DEVICE_T_OPEN(device));
}
static inline int sensors_close(struct sensors_poll_device_t* device) {
@@ -1405,7 +1405,7 @@ static inline int sensors_close(struct sensors_poll_device_t* device) {
static inline int sensors_open_1(const struct hw_module_t* module,
sensors_poll_device_1_t** device) {
return module->methods->open(module,
SENSORS_HARDWARE_POLL, (struct hw_device_t**)device);
SENSORS_HARDWARE_POLL, TO_HW_DEVICE_T_OPEN(device));
}
static inline int sensors_close_1(sensors_poll_device_1_t* device) {