[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)
commitb5cf725c04003edc4942057ae479f68826cee909
treed490ebbec1f6c3150a55de19c637b82e97416a9a
parent099256e58ef63ba171d5418fdc662e093cdba1be
[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
This page took 0.025219 seconds and 5 git commands to generate.