All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next v3 0/2] media: cx231xx: Switch to use kmemdup() helper and add two macros
@ 2023-09-03  8:14 Jinjie Ruan
  2023-09-03  8:14 ` [PATCH -next v3 1/2] media: cx231xx: Switch to use kmemdup() helper Jinjie Ruan
  2023-09-03  8:14 ` [PATCH -next v3 2/2] media: cx231xx: Add EP5_BUF_SIZE and EP5_TIMEOUT_MS macros Jinjie Ruan
  0 siblings, 2 replies; 7+ messages in thread
From: Jinjie Ruan @ 2023-09-03  8:14 UTC (permalink / raw)
  To: mchehab, linux-media, andrzej.p; +Cc: ruanjinjie

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-09  7:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-03  8:14 [PATCH -next v3 0/2] media: cx231xx: Switch to use kmemdup() helper and add two macros Jinjie Ruan
2023-09-03  8:14 ` [PATCH -next v3 1/2] media: cx231xx: Switch to use kmemdup() helper Jinjie Ruan
2023-09-08 12:19   ` Andrzej Pietrasiewicz
2023-09-09  7:29     ` Ruan Jinjie
2023-09-03  8:14 ` [PATCH -next v3 2/2] media: cx231xx: Add EP5_BUF_SIZE and EP5_TIMEOUT_MS macros Jinjie Ruan
2023-09-08 12:26   ` Andrzej Pietrasiewicz
2023-09-09  7:30     ` Ruan Jinjie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.