/* lis3l02dq_read_signed() - attribute function used for 8 bit signed values @dev: the child device associated with the iio_dev or iio_trigger @attr: the attribute being processed @buf: buffer into which put the output string  */
static ssize_t lis3l02dq_read_signed(struct device *dev, struct device_attribute *attr, char *buf)
/* lis3l02dq_read_signed() - attribute function used for 8 bit signed values @dev: the child device associated with the iio_dev or iio_trigger @attr: the attribute being processed @buf: buffer into which put the output string  */
static ssize_t lis3l02dq_read_signed(struct device *dev, struct device_attribute *attr, char *buf)
{
	int ret;
	s8 val;
	struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
	ret = lis3l02dq_spi_read_reg_8(dev, this_attr->address, (u8 *)&val);
	return ret ? ret : sprintf(buf, "%d\n", val);
}