Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae263736 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[hardware][interfaces][sensors] fix -Wreorder-init-list"

parents 7b9d43b0 0e2911eb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -68,9 +68,9 @@ void convertFromSensorEvent(const sensors_event_t &src, Event *dst) {
    typedef ::android::hardware::sensors::V1_0::MetaDataEventType MetaDataEventType;

    *dst = {
            .timestamp = src.timestamp,
            .sensorHandle = src.sensor,
            .sensorType = (SensorType)src.type,
        .timestamp = src.timestamp
    };

    switch (dst->sensorType) {
+1 −1
Original line number Diff line number Diff line
@@ -147,8 +147,8 @@ BufferDescriptor GrallocHalWrapper<AllocatorT, MapperT>::getDescriptor(uint32_t
            .width = size,
            .height = 1,
            .layerCount = 1,
            .usage = kBufferUsage,
            .format = static_cast<decltype(descriptorInfo.format)>(PixelFormat::BLOB),
            .usage = kBufferUsage,
    };

    BufferDescriptor descriptor;