| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * AD5592R / AD5593R Digital <-> Analog converters driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2015-2016 Analog Devices Inc. |
|---|
| 5 | 6 | * Author: Paul Cercueil <paul.cercueil@analog.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * Licensed under the GPL-2. |
|---|
| 8 | 7 | */ |
|---|
| 9 | 8 | |
|---|
| 10 | 9 | #ifndef __DRIVERS_IIO_DAC_AD5592R_BASE_H__ |
|---|
| .. | .. |
|---|
| 53 | 52 | struct regulator *reg; |
|---|
| 54 | 53 | struct gpio_chip gpiochip; |
|---|
| 55 | 54 | struct mutex gpio_lock; /* Protect cached gpio_out, gpio_val, etc. */ |
|---|
| 55 | + struct mutex lock; |
|---|
| 56 | 56 | unsigned int num_channels; |
|---|
| 57 | 57 | const struct ad5592r_rw_ops *ops; |
|---|
| 58 | 58 | int scale_avail[2][2]; |
|---|