projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fea4d6
)
staging: IIO: IMU: ADIS16400: Fix product ID check, skip embedded revision number
author
Michael Hennerich
<
[email protected]
>
Mon, 21 Mar 2011 15:44:39 +0000
(16:44 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 5 Apr 2011 19:37:11 +0000
(12:37 -0700)
Signed-off-by: Michael Hennerich <
[email protected]
>
Acked-by: Jonathan Cameron <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/iio/imu/adis16400_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/imu/adis16400_core.c
b/drivers/staging/iio/imu/adis16400_core.c
index 2107edb3ebce181bb4b6267d21a21ad6ed6ddead..0d8df6282b21bb13af9ad5ef96cb57587265ebc4 100644
(file)
--- a/
drivers/staging/iio/imu/adis16400_core.c
+++ b/
drivers/staging/iio/imu/adis16400_core.c
@@
-469,7
+469,7
@@
static int adis16400_initial_setup(struct adis16400_state *st)
if (ret)
goto err_ret;
- if (
prod_id
!= ADIS16400_PRODUCT_ID_DEFAULT)
+ if (
(prod_id & 0xF000)
!= ADIS16400_PRODUCT_ID_DEFAULT)
dev_warn(dev, "unknown product id");
printk(KERN_INFO DRIVER_NAME ": prod_id 0x%04x at CS%d (irq %d)\n",