kernel_samsung_a34x-permissive/drivers/sensorhub/sensor/light_autobrightness.h

36 lines
1,006 B
C
Raw Normal View History

/*
* Copyright (C) 2020, Samsung Electronics Co. Ltd. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __SHUB_LIGHT_AUTOBRIGHTNESS_H__
#define __SHUB_LIGHT_AUTOBRIGHTNESS_H__
#include <linux/types.h>
struct light_ab_event {
s32 lux;
u8 min_flag;
u32 brightness;
} __attribute__((__packed__));
struct light_autobrightness_data {
bool camera_lux_en;
int camera_lux;
int camera_lux_hysteresis[2];
int camera_br_hysteresis[2];
int light_ab_log_cnt;
};
#endif /* __SHUB_LIGHT_AUTOBRIGHTNESS_H_ */