| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2009-2010 Pengutronix |
|---|
| 3 | 4 | * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * loosely based on an earlier driver that has |
|---|
| 6 | 7 | * 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. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 57 | 54 | .max_register = MC13XXX_NUMREGS, |
|---|
| 58 | 55 | |
|---|
| 59 | 56 | .cache_type = REGCACHE_NONE, |
|---|
| 60 | | - .use_single_rw = 1, |
|---|
| 57 | + .use_single_read = true, |
|---|
| 58 | + .use_single_write = true, |
|---|
| 61 | 59 | }; |
|---|
| 62 | 60 | |
|---|
| 63 | 61 | static int mc13xxx_spi_read(void *context, const void *reg, size_t reg_size, |
|---|