peb2466.c (a1ff5a7d78a036d6c2178ee5acd6ba4946243800) peb2466.c (38cc0334baabc5baf08a1db753de521e016c0432)
1// SPDX-License-Identifier: GPL-2.0
2//
3// peb2466.c -- Infineon PEB2466 ALSA SoC driver
4//
5// Copyright 2023 CS GROUP France
6//
7// Author: Herve Codina <herve.codina@bootlin.com>
8

--- 215 unchanged lines hidden (view full) ---

224 int ret;
225 u8 tmp;
226
227 /* Only XOP and SOP commands can be handled as registers */
228 switch (reg & PEB2466_CMD_MASK) {
229 case PEB2466_CMD_XOP:
230 case PEB2466_CMD_SOP:
231 ret = peb2466_read_byte(peb2466, reg, &tmp);
1// SPDX-License-Identifier: GPL-2.0
2//
3// peb2466.c -- Infineon PEB2466 ALSA SoC driver
4//
5// Copyright 2023 CS GROUP France
6//
7// Author: Herve Codina <herve.codina@bootlin.com>
8

--- 215 unchanged lines hidden (view full) ---

224 int ret;
225 u8 tmp;
226
227 /* Only XOP and SOP commands can be handled as registers */
228 switch (reg & PEB2466_CMD_MASK) {
229 case PEB2466_CMD_XOP:
230 case PEB2466_CMD_SOP:
231 ret = peb2466_read_byte(peb2466, reg, &tmp);
232 *val = tmp;
232 if (!ret)
233 *val = tmp;
233 break;
234 default:
235 dev_err(&peb2466->spi->dev, "Not a XOP or SOP command\n");
236 ret = -EINVAL;
237 break;
238 }
239 return ret;
240}

--- 1831 unchanged lines hidden ---
234 break;
235 default:
236 dev_err(&peb2466->spi->dev, "Not a XOP or SOP command\n");
237 ret = -EINVAL;
238 break;
239 }
240 return ret;
241}

--- 1831 unchanged lines hidden ---