mbox

[-next,v2,0/2] media: cx231xx: Add two macros and switch to use kmemdup() helper

Message ID 20230822111832.822367-1-ruanjinjie@huawei.com (mailing list archive)
Headers

Message

Jinjie Ruan Aug. 22, 2023, 11:18 a.m. UTC
  As Andrzej suggested, add BUF_SIZE and TIMEOUT_MS macros to replace
the magic constant 4096 and 2000.

On the other hand, use kmemdup() helper instead of open-coding to
simplify the code.

Jinjie Ruan (2):
  media: cx231xx: Add BUF_SIZE and TIMEOUT_MS macros
  media: cx231xx: Switch to use kmemdup() helper

 drivers/media/usb/cx231xx/cx231xx-core.c | 7 +++----
 drivers/media/usb/cx231xx/cx231xx.h      | 3 +++
 2 files changed, 6 insertions(+), 4 deletions(-)