|
@@ -700,7 +700,8 @@ static const struct iio_chan_spec ina219_channels[] = {
|
|
static int ina2xx_work_buffer(struct iio_dev *indio_dev)
|
|
static int ina2xx_work_buffer(struct iio_dev *indio_dev)
|
|
{
|
|
{
|
|
struct ina2xx_chip_info *chip = iio_priv(indio_dev);
|
|
struct ina2xx_chip_info *chip = iio_priv(indio_dev);
|
|
- unsigned short data[8];
|
|
|
|
|
|
+ /* data buffer needs space for channel data and timestap */
|
|
|
|
+ unsigned short data[4 + sizeof(s64)/sizeof(short)];
|
|
int bit, ret, i = 0;
|
|
int bit, ret, i = 0;
|
|
s64 time_a, time_b;
|
|
s64 time_a, time_b;
|
|
unsigned int alert;
|
|
unsigned int alert;
|