]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: rc: nuvoton-cir: improve chip detection
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 29 Oct 2015 21:21:38 +0000 (19:21 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 11:35:32 +0000 (09:35 -0200)
commitcdd3c43a95aac226b803ab6dfd5cc896995e4534
treed490ebbec1f6c3150a55de19c637b82e97416a9a
parent0cb7f00e37ceab160132005ebf6baca9be433c82
[media] media: rc: nuvoton-cir: improve chip detection

Make the chip detection code more similar to the one used for the
same chips in watchdog/w83627hf_wdt.c and hwmon/w83627ehf.c.

Apart from better maintainability we gain
- unified naming of chips (e.g. 677C -> NCT6776F)
- driver works with all revisions of the chips
  (least 4 bits of id are masked)

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/nuvoton-cir.h