.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * SPI access for Dialog DA9052 PMICs. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright(c) 2011 Dialog Semiconductor Ltd. |
---|
5 | 6 | * |
---|
6 | 7 | * Author: David Dajun Chen <dchen@diasemi.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
13 | 8 | */ |
---|
14 | 9 | |
---|
15 | 10 | #include <linux/device.h> |
---|
.. | .. |
---|
46 | 41 | config.reg_bits = 7; |
---|
47 | 42 | config.pad_bits = 1; |
---|
48 | 43 | config.val_bits = 8; |
---|
49 | | - config.use_single_rw = 1; |
---|
| 44 | + config.use_single_read = true; |
---|
| 45 | + config.use_single_write = true; |
---|
50 | 46 | |
---|
51 | 47 | da9052->regmap = devm_regmap_init_spi(spi, &config); |
---|
52 | 48 | if (IS_ERR(da9052->regmap)) { |
---|