All of lore.kernel.org
 help / color / mirror / Atom feed
* staging/iio/meter/ade7753: 406:19: warning: right shift by bigger than source value
@ 2011-07-13 15:49 Randy Dunlap
  2011-07-14  9:24 ` Jonathan Cameron
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2011-07-13 15:49 UTC (permalink / raw)
  To: driverdevel; +Cc: linux-iio, Jonathan Cameron


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 ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-17 17:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13 15:49 staging/iio/meter/ade7753: 406:19: warning: right shift by bigger than source value Randy Dunlap
2011-07-14  9:24 ` Jonathan Cameron
2011-07-14  9:36   ` Michael Hennerich
2011-07-14 10:05     ` Jonathan Cameron
2011-07-17 17:57   ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.