forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/drivers/mfd/da9052-spi.c
....@@ -1,15 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SPI access for Dialog DA9052 PMICs.
34 *
45 * Copyright(c) 2011 Dialog Semiconductor Ltd.
56 *
67 * 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
- *
138 */
149
1510 #include <linux/device.h>
....@@ -46,7 +41,8 @@
4641 config.reg_bits = 7;
4742 config.pad_bits = 1;
4843 config.val_bits = 8;
49
- config.use_single_rw = 1;
44
+ config.use_single_read = true;
45
+ config.use_single_write = true;
5046
5147 da9052->regmap = devm_regmap_init_spi(spi, &config);
5248 if (IS_ERR(da9052->regmap)) {