Re: [PATCH 2/3] bus: add Wiegand bus driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 04, 2023 at 02:34:13PM +0100, Martin Zaťovič wrote:
> +struct boardinfo {
> +	struct list_head list;
> +	struct wiegand_board_info board_info;
> +};
> +
> +static LIST_HEAD(board_list);
> +static LIST_HEAD(wiegand_controller_list);

Why are all of these needed at all?  Shouldn't the driver core handle
the bus list logic for you?  Why do you need a separate static list as
well?

thanks,

greg k-h



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux