File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 3737#define AHT10_CMD_MEAS 0b10101100
3838#define AHT10_CMD_RST 0b10111010
3939
40- #define AHT20_CMD_INIT 0b10111110
41-
4240/*
4341 * Flags in the answer byte/command
4442 */
@@ -61,7 +59,6 @@ MODULE_DEVICE_TABLE(i2c, aht10_id);
6159
6260static const struct of_device_id aht10_of_id [] = {
6361 { .compatible = "aosong,aht10" , },
64- { .compatible = "aosong,aht20" , },
6562 { }
6663};
6764MODULE_DEVICE_TABLE (of , aht10_of_id );
@@ -110,13 +107,8 @@ struct aht10_data {
110107 */
111108static int aht10_init (struct aht10_data * data )
112109{
113- u8 cmd_init [] = {AHT10_CMD_INIT , AHT10_CAL_ENABLED | AHT10_MODE_CYC , 0x00 };
114-
115- if (data -> crc8 ) { /* AHT20 */
116- cmd_init [0 ] = AHT20_CMD_INIT ;
117- cmd_init [1 ] = AHT10_CAL_ENABLED ;
118- }
119-
110+ const u8 cmd_init [] = {AHT10_CMD_INIT , AHT10_CAL_ENABLED | AHT10_MODE_CYC ,
111+ 0x00 };
120112 int res ;
121113 u8 status ;
122114 struct i2c_client * client = data -> client ;
You can’t perform that action at this time.
0 commit comments