Re: [greybus-dev][PATCH 2/3] staging: greybus: Add Greybus netlink driver

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

 



On Fri, May 05, 2017 at 11:43:28AM +0200, Alexandre Bailon wrote:
> > > +	dev = device_create(gb_nl_class, NULL, major_dev, NULL, DEVICE_NAME);
> > > +	if (IS_ERR(dev)) {
> > > +		retval = PTR_ERR(dev);
> > > +		goto err_class_destroy;
> > > +	}
> > What do you do with this character device?  Can you just use a misc
> > device instead?
> I'm doing nothing with the character device. Actually, I just need to have a
> parent device
> for greybus. I will take a look to the misc device.

Hm, how about just a dummy "virtual" device instead?  That will be
"cleaner" and will not burn a character device node for no reason.

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