summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2015-03-03 10:52:26 +0100
committerFelipe Balbi <balbi@ti.com>2015-03-10 15:33:39 -0500
commit6dd8c2e69521ec9d7b23a741294702f844353f1a (patch)
tree9da4e112a1794dd00c7a8ceb3890b8378d28e700 /drivers/i2c
parent636bc0ed271d996e18365345e9c00fc712edc610 (diff)
downloadblackbird-op-linux-6dd8c2e69521ec9d7b23a741294702f844353f1a.tar.gz
blackbird-op-linux-6dd8c2e69521ec9d7b23a741294702f844353f1a.zip
usb: gadget: printer: allocate printer_dev instances dynamically
With all the obstacles removed it is possible to allow more than one instance of the printer function. Since the function requires allocating character device region, a maximum number of allowed instances is defined. Such an approach is used in f_acm and in f_hid. With multiple instances it does not make sense to depend on a lock_printer_io member of a dynamically allocated (and destroyed) struct printer_dev to clean up after all instances of the printer function. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud