ad5592r.c (e82a82c19f4272ea5437cc76e5711b98e2ee6223) | ad5592r.c (38e442fc8ba11b32e57f4837e1aa695f3751b99c) |
---|---|
1/* 2 * AD5592R Digital <-> Analog converters driver 3 * 4 * Copyright 2015-2016 Analog Devices Inc. 5 * Author: Paul Cercueil <paul.cercueil@analog.com> 6 * 7 * Licensed under the GPL-2. 8 */ 9 10#include "ad5592r-base.h" 11 12#include <linux/bitops.h> 13#include <linux/module.h> 14#include <linux/of.h> 15#include <linux/spi/spi.h> 16 17#define AD5592R_GPIO_READBACK_EN BIT(10) 18#define AD5592R_LDAC_READBACK_EN BIT(6) 19 | 1/* 2 * AD5592R Digital <-> Analog converters driver 3 * 4 * Copyright 2015-2016 Analog Devices Inc. 5 * Author: Paul Cercueil <paul.cercueil@analog.com> 6 * 7 * Licensed under the GPL-2. 8 */ 9 10#include "ad5592r-base.h" 11 12#include <linux/bitops.h> 13#include <linux/module.h> 14#include <linux/of.h> 15#include <linux/spi/spi.h> 16 17#define AD5592R_GPIO_READBACK_EN BIT(10) 18#define AD5592R_LDAC_READBACK_EN BIT(6) 19 |
20static int ad5592r_spi_wnop_r16(struct ad5592r_state *st, u16 *buf) | 20static int ad5592r_spi_wnop_r16(struct ad5592r_state *st, __be16 *buf) |
21{ 22 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); 23 struct spi_transfer t = { 24 .tx_buf = &st->spi_msg_nop, 25 .rx_buf = buf, 26 .len = 2 27 }; 28 --- 136 unchanged lines hidden --- | 21{ 22 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); 23 struct spi_transfer t = { 24 .tx_buf = &st->spi_msg_nop, 25 .rx_buf = buf, 26 .len = 2 27 }; 28 --- 136 unchanged lines hidden --- |