Thread (30 messages) 30 messages, 6 authors, 2015-12-05
STALE3357d

[PATCH v4 4/4] iio: humidity: si7020: added No Hold read mode

From: lars@metafoo.de (Lars-Peter Clausen)
Date: 2015-10-29 09:17:53
Also in: linux-i2c, linux-iio

quoted
So maybe more like this:

static inline bool i2c_check_quirks(struct i2c_adapter *adap, u64 quirks)
{
if (!adap->quirks)
return false;
return (adap->quirks->flags & quirks) == quirks;
}
Should I use bool (like in your snippet) or int (like i2c_check_functionality) as return type?
I'd use bool, given that the result is a boolean value. It's semantically
more clear this way.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help