提交 61e3d0f7 编写于 作者: W Wolfram Sang

i2c: reformat core-base file header

Finally, apply modern comment rules to the file header. The old style
looked very non-Linuxish and challenged my eyes for some time now. I
also added my own copyright for the period of me being the maintainer.
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 16210d06
/* i2c-core.c - a device driver for the iic-bus interface */ /*
/* ------------------------------------------------------------------------- */ * Linux I2C core
/* Copyright (C) 1995-99 Simon G. Vogl *
* Copyright (C) 1995-99 Simon G. Vogl
This program is free software; you can redistribute it and/or modify * With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi>
it under the terms of the GNU General Public License as published by * Mux support by Rodolfo Giometti <giometti@enneenne.com> and
the Free Software Foundation; either version 2 of the License, or * Michael Lawnick <michael.lawnick.ext@nsn.com>
(at your option) any later version. *
* Copyright (C) 2013-2017 Wolfram Sang <wsa@the-dreams.de>
This program is distributed in the hope that it will be useful, *
but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is free software; you can redistribute it and/or modify it
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * under the terms of the GNU General Public License as published by the Free
GNU General Public License for more details. */ * Software Foundation; either version 2 of the License, or (at your option)
/* ------------------------------------------------------------------------- */ * any later version.
*
/* With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi>. * This program is distributed in the hope that it will be useful, but WITHOUT
Mux support by Rodolfo Giometti <giometti@enneenne.com> and * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
Michael Lawnick <michael.lawnick.ext@nsn.com> * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*/ */
#define pr_fmt(fmt) "i2c-core: " fmt #define pr_fmt(fmt) "i2c-core: " fmt
...@@ -57,9 +57,10 @@ ...@@ -57,9 +57,10 @@
#define I2C_ADDR_7BITS_MAX 0x77 #define I2C_ADDR_7BITS_MAX 0x77
#define I2C_ADDR_7BITS_COUNT (I2C_ADDR_7BITS_MAX + 1) #define I2C_ADDR_7BITS_COUNT (I2C_ADDR_7BITS_MAX + 1)
/* core_lock protects i2c_adapter_idr, and guarantees /*
that device detection, deletion of detected devices, and attach_adapter * core_lock protects i2c_adapter_idr, and guarantees that device detection,
calls are serialized */ * deletion of detected devices, and attach_adapter calls are serialized
*/
static DEFINE_MUTEX(core_lock); static DEFINE_MUTEX(core_lock);
static DEFINE_IDR(i2c_adapter_idr); static DEFINE_IDR(i2c_adapter_idr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册