Greg Kroah-Hartman
3ce20a710f
misc: c2port: use dev_bin_attrs instead of hand-coding it
...
Classes support a list of default binary attributes, so use that in the
c2port driver, instead of hand creating and destroying the file, which
is racing with userspace. Bonus is this removes lines of code.
Cc: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--
drivers/misc/c2port/core.c | 30 +++++++++++++-----------------
1 file changed, 13 insertions(+), 17 deletions(-)
2013-07-24 13:45:04 -07:00
..
2011-10-31 15:42:54 -07:00
2013-07-24 13:45:04 -07:00
2013-06-06 12:54:08 -07:00
2013-02-08 12:23:53 -08:00
2013-05-30 21:49:32 +09:00
2013-03-03 19:36:31 -08:00
2013-06-06 12:54:08 -07:00
2013-07-04 11:40:58 -07:00
2013-07-03 16:07:42 -07:00
2013-06-14 10:19:25 +02:00
2013-05-30 21:46:15 +09:00
2013-05-20 10:24:22 +09:30
2012-11-21 12:53:32 -08:00
2012-11-21 12:53:32 -08:00
2013-06-06 12:54:08 -07:00
2012-01-09 12:08:59 -08:00
2013-06-06 12:54:08 -07:00
2013-06-06 12:54:08 -07:00
2013-05-16 18:11:13 -07:00
2013-03-15 11:10:49 -07:00
2012-03-01 13:38:49 +01:00
2013-06-17 17:20:15 +01:00
2013-06-06 12:54:08 -07:00
2013-06-06 12:54:08 -07:00
2012-11-21 12:51:53 -08:00
2012-11-21 12:51:53 -08:00
2012-11-21 12:51:53 -08:00
2012-04-18 14:57:14 -07:00
2013-04-03 11:23:13 -07:00
2012-01-24 16:31:49 -08:00
2013-05-28 12:02:13 +02:00
2010-07-27 12:03:48 -05:00
2013-05-30 21:54:07 +09:00
2013-04-11 12:39:02 -07:00
2013-06-06 12:54:08 -07:00
2012-11-21 12:51:53 -08:00
2012-06-14 17:22:12 -07:00
2012-01-24 16:31:49 -08:00
2012-11-21 12:53:32 -08:00
2013-06-06 12:54:08 -07:00
2013-06-06 12:54:08 -07:00
2013-07-02 11:44:19 -07:00
2013-03-02 08:52:17 -06:00
2013-05-28 12:02:13 +02:00
2012-07-30 17:25:22 -07:00
2013-04-29 18:28:13 -07:00
2013-06-06 12:54:08 -07:00
2012-11-21 12:53:32 -08:00
2012-12-11 14:08:47 -08:00
2013-06-06 12:54:08 -07:00
2013-06-17 16:41:49 -07:00
2013-06-06 12:54:08 -07:00
2012-09-05 14:10:29 -07:00
2013-02-27 19:10:17 -08:00
2013-05-16 18:11:12 -07:00
2012-02-02 16:28:13 -08:00