Thread (37 messages) 37 messages, 5 authors, 2021-09-14

Re: [PATCH v2 04/15] block: Add block device LED trigger integrations

From: Marek Behún <kabel@kernel.org>
Date: 2021-09-10 01:23:35
Also in: linux-leds, lkml

On Thu,  9 Sep 2021 17:25:02 -0500
Ian Pilcher [off-list ref] wrote:
Add LED trigger disk info pointer to gendisk structure

Call ledtrig_blkdev_disk_init() from device_add_disk() to ensure that
ledtrig is initialized to NULL, in case a driver allocates the structure
itself and doesn't use kzalloc()
No, this is not needed. If someone does not use kzalloc(), they should
use it. No need to fix other code here.

Marek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help