forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/iio/dac/ad5592r-base.h
....@@ -1,10 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * AD5592R / AD5593R Digital <-> Analog converters driver
34 *
45 * Copyright 2015-2016 Analog Devices Inc.
56 * Author: Paul Cercueil <paul.cercueil@analog.com>
6
- *
7
- * Licensed under the GPL-2.
87 */
98
109 #ifndef __DRIVERS_IIO_DAC_AD5592R_BASE_H__
....@@ -53,6 +52,7 @@
5352 struct regulator *reg;
5453 struct gpio_chip gpiochip;
5554 struct mutex gpio_lock; /* Protect cached gpio_out, gpio_val, etc. */
55
+ struct mutex lock;
5656 unsigned int num_channels;
5757 const struct ad5592r_rw_ops *ops;
5858 int scale_avail[2][2];