hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/mfd/mc13xxx-spi.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright 2009-2010 Pengutronix
34 * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
45 *
56 * loosely based on an earlier driver that has
67 * Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it under
9
- * the terms of the GNU General Public License version 2 as published by the
10
- * Free Software Foundation.
118 */
129
1310 #include <linux/slab.h>
....@@ -57,7 +54,8 @@
5754 .max_register = MC13XXX_NUMREGS,
5855
5956 .cache_type = REGCACHE_NONE,
60
- .use_single_rw = 1,
57
+ .use_single_read = true,
58
+ .use_single_write = true,
6159 };
6260
6361 static int mc13xxx_spi_read(void *context, const void *reg, size_t reg_size,