staging/iio/meter/ade7753: 406:19: warning: right shift by bigger than source value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



static ssize_t ade7753_read_frequency(struct device *dev,
		struct device_attribute *attr,
		char *buf)
{
	int ret, len = 0;
	u8 t;
	int sps;
	ret = ade7753_spi_read_reg_8(dev, ADE7753_MODE,	&t);
	if (ret)
		return ret;

	t = (t >> 11) & 0x3; /// HUH?

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux