[-next,v3,0/2] media: cx231xx: Switch to use kmemdup() helper and add two macros

Message ID 20230903081440.1564633-1-ruanjinjie@huawei.com (mailing list archive)
Headers
Series media: cx231xx: Switch to use kmemdup() helper and add two macros |

Message

Jinjie Ruan Sept. 3, 2023, 8:14 a.m. UTC
  Use kmemdup() helper instead of open-coding to simplify the code.

On the other hand, as Andrzej suggested, add EP5_BUF_SIZE and
EP5_TIMEOUT_MS macros to replace the magic constant 4096 and 2000.

Changes in v3:
- Adjust the second patch to be the first.
- Update the names of the macros.

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

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