From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934022AbXHLJrO (ORCPT ); Sun, 12 Aug 2007 05:47:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763791AbXHLJn5 (ORCPT ); Sun, 12 Aug 2007 05:43:57 -0400 Received: from adicia.telenet-ops.be ([195.130.132.56]:41176 "EHLO adicia.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756750AbXHLJnq (ORCPT ); Sun, 12 Aug 2007 05:43:46 -0400 Message-Id: <20070812094119.615919883@mail.of.borg> References: <20070812094050.522858761@mail.of.borg> User-Agent: quilt/0.46-1 Date: Sun, 12 Aug 2007 11:40:59 +0200 From: Geert Uytterhoeven To: Linus Torvalds , Andrew Morton Cc: linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [patch 09/10] zorro: Make sysfs `config attribute read-only Content-Disposition: inline; filename=zorro_config_attr-read-only.diff Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org zorro: Make the sysfs `config' attribute read-only, as you cannot write to it (there's no .write function neither). Signed-off-by: Geert Uytterhoeven --- drivers/zorro/zorro-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/zorro/zorro-sysfs.c +++ b/drivers/zorro/zorro-sysfs.c @@ -78,7 +78,7 @@ static ssize_t zorro_read_config(struct static struct bin_attribute zorro_config_attr = { .attr = { .name = "config", - .mode = S_IRUGO | S_IWUSR, + .mode = S_IRUGO, }, .size = sizeof(struct ConfigDev), .read = zorro_read_config, -- Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds