Re: [PATCH] [media] au0828: Fix dev_state handling

2016-03-22 Thread Shuah Khan
On 03/22/2016 07:16 AM, Mauro Carvalho Chehab wrote: > The au0828 dev_state is actually a bit mask. It should not be > checking with "==" but, instead, with a logic and. There are some > places where it was doing it wrong. > > Fix that by replacing the dev_state set/clear/test with the > bitops. >

[PATCH] [media] au0828: Fix dev_state handling

2016-03-22 Thread Mauro Carvalho Chehab
The au0828 dev_state is actually a bit mask. It should not be checking with "==" but, instead, with a logic and. There are some places where it was doing it wrong. Fix that by replacing the dev_state set/clear/test with the bitops. Cc: sta...@vger.kernel.org Signed-off-by: Mauro Carvalho Chehab