From: Rodolfo Giometti <giometti@linux.it>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>,
linux-kernel@vger.kernel.org,
Rodolfo Giometti <giometti@linux.it>
Subject: [PATCH] pps sysfs: not needed variables removed.
Date: Tue, 2 Dec 2008 11:56:06 +0100 [thread overview]
Message-ID: <1228215367-22479-1-git-send-email-giometti@linux.it> (raw)
In-Reply-To: <20081201103741.f70cb84c.akpm@linux-foundation.org>
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
---
drivers/pps/sysfs.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/drivers/pps/sysfs.c b/drivers/pps/sysfs.c
index 99528a8..7c2b0c4 100644
--- a/drivers/pps/sysfs.c
+++ b/drivers/pps/sysfs.c
@@ -41,7 +41,6 @@ static ssize_t pps_show_assert(struct device *dev,
(long long) pps->assert_tu.sec, pps->assert_tu.nsec,
pps->assert_sequence);
}
-DEVICE_ATTR(assert, S_IRUGO, pps_show_assert, NULL);
static ssize_t pps_show_clear(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -55,7 +54,6 @@ static ssize_t pps_show_clear(struct device *dev,
(long long) pps->clear_tu.sec, pps->clear_tu.nsec,
pps->clear_sequence);
}
-DEVICE_ATTR(clear, S_IRUGO, pps_show_clear, NULL);
static ssize_t pps_show_mode(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -64,7 +62,6 @@ static ssize_t pps_show_mode(struct device *dev,
return sprintf(buf, "%4x\n", pps->info.mode);
}
-DEVICE_ATTR(mode, S_IRUGO, pps_show_mode, NULL);
static ssize_t pps_show_echo(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -73,7 +70,6 @@ static ssize_t pps_show_echo(struct device *dev,
return sprintf(buf, "%d\n", !!pps->info.echo);
}
-DEVICE_ATTR(echo, S_IRUGO, pps_show_echo, NULL);
static ssize_t pps_show_name(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -82,7 +78,6 @@ static ssize_t pps_show_name(struct device *dev,
return sprintf(buf, "%s\n", pps->info.name);
}
-DEVICE_ATTR(name, S_IRUGO, pps_show_name, NULL);
static ssize_t pps_show_path(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -91,7 +86,6 @@ static ssize_t pps_show_path(struct device *dev,
return sprintf(buf, "%s\n", pps->info.path);
}
-DEVICE_ATTR(path, S_IRUGO, pps_show_path, NULL);
struct device_attribute pps_attrs[] = {
__ATTR(assert, S_IRUGO, pps_show_assert, NULL),
--
1.5.3.8
next prev parent reply other threads:[~2008-12-02 10:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200811270101.mAR114rp016378@imap1.linux-foundation.org>
2008-11-28 13:09 ` mmotm 2008-11-26-17-00 uploaded Tetsuo Handa
2008-11-28 19:42 ` Andrew Morton
2008-12-03 15:52 ` Stephen Hemminger
2008-12-03 21:42 ` Tetsuo Handa
2008-11-29 4:57 ` mmotm 2008-11-26-17-00 uploaded (backlight) Randy Dunlap
2008-11-29 5:01 ` mmotm 2008-11-26-17-00 uploaded (hwmon / dev_attr_name) Randy Dunlap
2008-11-29 6:06 ` Andrew Morton
2008-11-29 17:25 ` Randy Dunlap
2008-12-01 5:53 ` Andrew Morton
2008-12-01 13:56 ` Rodolfo Giometti
2008-12-01 18:37 ` Andrew Morton
2008-12-02 10:13 ` Rodolfo Giometti
2008-12-02 10:56 ` Rodolfo Giometti [this message]
2008-12-02 10:56 ` [PATCH] pps ldisc: avoid noisy compilation on 64bits architecture Rodolfo Giometti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1228215367-22479-1-git-send-email-giometti@linux.it \
--to=giometti@linux.it \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox