diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-04-17 13:11:11 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-04-17 13:11:11 +0000 |
commit | 59f088d4a2622ae0c65a75d3aea797a69a81f4b3 (patch) | |
tree | 6bb35c76177c1f188e0de87e1fc8403ec84bcc2a /package/spi-ks8995 | |
parent | 63156f67238c993c81325244b69b0b3794b3d687 (diff) | |
download | master-187ad058-59f088d4a2622ae0c65a75d3aea797a69a81f4b3.tar.gz master-187ad058-59f088d4a2622ae0c65a75d3aea797a69a81f4b3.tar.bz2 master-187ad058-59f088d4a2622ae0c65a75d3aea797a69a81f4b3.zip |
[package] spi-ks8995: fix a compiler warning, fix the copyright header
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10852 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/spi-ks8995')
-rw-r--r-- | package/spi-ks8995/src/spi_ks8995.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/package/spi-ks8995/src/spi_ks8995.c b/package/spi-ks8995/src/spi_ks8995.c index d90efb21e8..c0dd86b4cc 100644 --- a/package/spi-ks8995/src/spi_ks8995.c +++ b/package/spi-ks8995/src/spi_ks8995.c @@ -1,15 +1,14 @@ /* * SPI driver for Micrel/Kendin KS8995M ethernet switch * - * Copyright (C) 2008 Gabor Juhos <juhosg at opwnert.org> + * Copyright (C) 2008 Gabor Juhos <juhosg at openwrt.org> * * This file was based on: drivers/spi/at25.c * Copyright (C) 2006 David Brownell * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. */ #include <linux/types.h> @@ -21,8 +20,8 @@ #include <linux/spi/spi.h> -#define DRV_VERSION "0.1.0" -#define DRV_DESC "Micrel/Kendin KS8995 Ethernet switch driver" +#define DRV_VERSION "0.1.1" +#define DRV_DESC "Micrel/Kendin KS8995 Ethernet switch SPI driver" /*-------------------------------------------------------------------------*/ @@ -174,12 +173,12 @@ static int ks8995_write(struct ks8995_switch *ks, char *buf, return err ? err : count; } -static int ks8995_read_reg(struct ks8995_switch *ks, u8 addr, u8 *buf) +static inline int ks8995_read_reg(struct ks8995_switch *ks, u8 addr, u8 *buf) { return (ks8995_read(ks, buf, addr, 1) != 1); } -static int ks8995_write_reg(struct ks8995_switch *ks, u8 addr, u8 val) +static inline int ks8995_write_reg(struct ks8995_switch *ks, u8 addr, u8 val) { char buf = val; @@ -414,6 +413,7 @@ static void __exit ks8995_exit(void) module_exit(ks8995_exit); MODULE_DESCRIPTION(DRV_DESC); +MODULE_VERSION(DRV_VERSION); MODULE_AUTHOR("Gabor Juhos <juhosg at openwrt.org>"); MODULE_LICENSE("GPL v2"); |