[Mjpeg-users] [PATCH 1/3] media: zoran: use upper case for card types

2020-10-01 Thread Mauro Carvalho Chehab
Don't mix case there: let's just use uppercase, as this is the common pattern for such define-like enums. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/zoran/zoran.h | 8 drivers/staging/media/zoran/zoran_card.c | 20 ++-- 2 files changed, 14 inser

[Mjpeg-users] [PATCH 3/3] media: zoran: fix mixed case on vars

2020-10-01 Thread Mauro Carvalho Chehab
Use this small script to replace CamelCase and wrong case on vars: FILES=$(find "$1" -type f|grep -e '.c$' -e '.h$') CAMEL_VARS=$(cat tags|perl -ne 'print "$1\n" if (m/^(\w*[A-Z]\w*[a-z]\w*)\s/)') for i in $CAMEL_VARS; do new=$(perl -e ' my $s = $ARGV[0]; $

[Mjpeg-users] [PATCH 2/3] media: zoran: get rid of an unused var

2020-10-01 Thread Mauro Carvalho Chehab
The jpeg_error in lowercase is not used anywhere. Drop it. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/zoran/zoran.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran.h b/drivers/staging/media/zoran/zoran.h index 7217a64fe59b..945502becd60 1