Re: [PATCH 2/2] [2/2] extcon: optimising the check_mutually_exclusive function

2012-08-31 Thread MyungJoo Ham
> From: anish kumar > > Rather than re-inventing the wheel we can use the hamming function > to calculate the number of bits set to check for violation of > exclusivity. > > Signed-off-by: anish kumar Ah.. we've got such a convinient one. Thanks. Singed-off-by: MyungJoo Ham > --- > driver

[PATCH 2/2] [2/2] extcon: optimising the check_mutually_exclusive function

2012-08-29 Thread anish kumar
From: anish kumar Rather than re-inventing the wheel we can use the hamming function to calculate the number of bits set to check for violation of exclusivity. Signed-off-by: anish kumar --- drivers/extcon/extcon-class.c | 14 +- 1 files changed, 5 insertions(+), 9 deletions(-)