blob: f3cb997bc3241d9dc2c588ccc24521c10aae7bfe [file] [log] [blame]
From 5b5c99a5cc6b6e2ec0fd3a5477a0e96868d09cd3 Mon Sep 17 00:00:00 2001
From: Sam Shih <sam.shih@mediatek.com>
Date: Wed, 11 Oct 2023 13:51:14 +0800
Subject: [PATCH] add config
---
drivers/iio/pressure/Kconfig | 7 +++++++
drivers/iio/pressure/Makefile | 1 +
2 files changed, 8 insertions(+)
diff --git a/drivers/iio/pressure/Kconfig b/drivers/iio/pressure/Kconfig
index ba420e4..83bf432 100644
--- a/drivers/iio/pressure/Kconfig
+++ b/drivers/iio/pressure/Kconfig
@@ -64,6 +64,13 @@ config DPS310
This driver can also be built as a module. If so, the module will be
called dps310.
+config ZTS8032
+ tristate "Zilltek ZTS8032 barometric pressure sensor"
+ depends on I2C
+ select REGMAP_I2C
+ help
+ Support for the Zilltek ZTS8032 barometric pressure sensor.
+
config HID_SENSOR_PRESS
depends on HID_SENSOR_HUB
select IIO_BUFFER
diff --git a/drivers/iio/pressure/Makefile b/drivers/iio/pressure/Makefile
index d8f5ace..2433aad 100644
--- a/drivers/iio/pressure/Makefile
+++ b/drivers/iio/pressure/Makefile
@@ -10,6 +10,7 @@ bmp280-objs := bmp280-core.o bmp280-regmap.o
obj-$(CONFIG_BMP280_I2C) += bmp280-i2c.o
obj-$(CONFIG_BMP280_SPI) += bmp280-spi.o
obj-$(CONFIG_DPS310) += dps310.o
+obj-$(CONFIG_ZTS8032) += zts8032.o
obj-$(CONFIG_IIO_CROS_EC_BARO) += cros_ec_baro.o
obj-$(CONFIG_HID_SENSOR_PRESS) += hid-sensor-press.o
obj-$(CONFIG_HP03) += hp03.o
--
2.18.0