Re: [PATCH 1/2] staging: dgnc: Make the struct dgnc_board possible to use list facility

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

 



On Sun, Aug 31, 2014 at 11:23:57PM +0200, Konrad Zapalowicz wrote:
> This commit adds the struct list_head to the struct dgnc_board so that
> it is now possible to use it with the Linux list facility.
> 
> Signed-off-by: Konrad Zapalowicz <bergo.torino+kernel@xxxxxxxxx>
> ---
>  drivers/staging/dgnc/dgnc_driver.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h
> index 1111020..251b082 100644
> --- a/drivers/staging/dgnc/dgnc_driver.h
> +++ b/drivers/staging/dgnc/dgnc_driver.h
> @@ -209,6 +209,7 @@ struct board_ops {
>   *	Per-board information
>   */
>  struct dgnc_board {
> +	struct list_head list;
>  	int		magic;		/* Board Magic number.  */
>  	int		boardnum;	/* Board number: 0-32 */

Shouldn't the "struct dgnc_board" structure just live off of the pci
device structure and not require a "list" at all?  That way it's dynamic
depending on how many devices are in the system, like all other pci
drivers.

thanks,

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux