Fix build
Change-Id: Iaf3bba12e3f34d351890320b25aa340e75c1972c
This commit is contained in:
@@ -785,7 +785,7 @@ typedef struct sensors_poll_device_1 {
|
|||||||
/* sensors_poll_device_1 is compatible with sensors_poll_device_t,
|
/* sensors_poll_device_1 is compatible with sensors_poll_device_t,
|
||||||
* and can be down-cast to it
|
* and can be down-cast to it
|
||||||
*/
|
*/
|
||||||
sensors_poll_device_t v0;
|
struct sensors_poll_device_t v0;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
struct hw_device_t common;
|
struct hw_device_t common;
|
||||||
@@ -964,12 +964,12 @@ static inline int sensors_close(struct sensors_poll_device_t* device) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline int sensors_open_1(const struct hw_module_t* module,
|
static inline int sensors_open_1(const struct hw_module_t* module,
|
||||||
sensors_poll_device_1** device) {
|
sensors_poll_device_1_t** device) {
|
||||||
return module->methods->open(module,
|
return module->methods->open(module,
|
||||||
SENSORS_HARDWARE_POLL, (struct hw_device_t**)device);
|
SENSORS_HARDWARE_POLL, (struct hw_device_t**)device);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int sensors_close_1(sensors_poll_device_1* device) {
|
static inline int sensors_close_1(sensors_poll_device_1_t* device) {
|
||||||
return device->common.close(&device->common);
|
return device->common.close(&device->common);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user