We don't want a comedi device driver to change the `struct comedi_device`'s `hw_dev` member once it has been set (usually automatically by `comedi_auto_attach()`), so change `comedi_set_hw_dev()` to prevent this. Also change it to an external function instead of an inline function. 1) staging: comedi: export comedi_set_hw_dev() 2) staging: comedi: restrict comedi_set_hw_dev() usage drivers/staging/comedi/comedidev.h | 9 +-------- drivers/staging/comedi/drivers.c | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 9 deletions(-) _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel