From patchwork Fri Feb 4 12:23:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasiliy Kulikov X-Patchwork-Id: 531781 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p14CRhCI004512 for ; Fri, 4 Feb 2011 12:27:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751986Ab1BDM1H (ORCPT ); Fri, 4 Feb 2011 07:27:07 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:32973 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535Ab1BDMXh (ORCPT ); Fri, 4 Feb 2011 07:23:37 -0500 Received: by mail-fx0-f46.google.com with SMTP id 20so2343499fxm.19 for ; Fri, 04 Feb 2011 04:23:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer:in-reply-to:references; bh=mAHSULNlEtRWMX4y/UmnqfaouSnEyK0N28GNs6MvVc8=; b=O+PxGn8AxN2Se/vh0hw7qJo2CiAvBnxCvuOp1xdefMwOPsYq2e4kVOfDWOfTK50HLH aRTrCmhRJCbEVlE5Mmk2oax4oFZ5nedpf2EWpkH642yhPtplusQN22/z8DSQRX6F9EgO 702ySTVLh74zl7vzOk2SrXSGHWhH9khZV86+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=qyrXZ+ypebmvhTirGxYLAqDdNCmuNi3OBD1ltQ9QvCCni/bEt/Roco0nG6MTKTaXP1 HIvV9oAYyh963xN/EWMeeIFmXh3omoVfbdiad3/tWRxgBW+QjVA9tid4OYl38/9ghLJE x6qemMf5Ybut9l6/nCOnYn1vFsouGLNz0UxJ0= Received: by 10.223.83.199 with SMTP id g7mr1964560fal.97.1296822216297; Fri, 04 Feb 2011 04:23:36 -0800 (PST) Received: from localhost (ppp85-141-141-135.pppoe.mtu-net.ru [85.141.141.135]) by mx.google.com with ESMTPS id e6sm202527fav.8.2011.02.04.04.23.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 04:23:35 -0800 (PST) From: Vasiliy Kulikov To: linux-kernel@vger.kernel.org Cc: security@kernel.org, Luca Risolia , Mauro Carvalho Chehab , linux-usb@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 07/20] video: sn9c102: world-wirtable sysfs files Date: Fri, 4 Feb 2011 15:23:33 +0300 Message-Id: X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 04 Feb 2011 12:27:44 +0000 (UTC) diff --git a/drivers/media/video/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c index 84984f6..ce56a1c 100644 --- a/drivers/media/video/sn9c102/sn9c102_core.c +++ b/drivers/media/video/sn9c102/sn9c102_core.c @@ -1430,9 +1430,9 @@ static DEVICE_ATTR(i2c_reg, S_IRUGO | S_IWUSR, sn9c102_show_i2c_reg, sn9c102_store_i2c_reg); static DEVICE_ATTR(i2c_val, S_IRUGO | S_IWUSR, sn9c102_show_i2c_val, sn9c102_store_i2c_val); -static DEVICE_ATTR(green, S_IWUGO, NULL, sn9c102_store_green); -static DEVICE_ATTR(blue, S_IWUGO, NULL, sn9c102_store_blue); -static DEVICE_ATTR(red, S_IWUGO, NULL, sn9c102_store_red); +static DEVICE_ATTR(green, S_IWUSR, NULL, sn9c102_store_green); +static DEVICE_ATTR(blue, S_IWUSR, NULL, sn9c102_store_blue); +static DEVICE_ATTR(red, S_IWUSR, NULL, sn9c102_store_red); static DEVICE_ATTR(frame_header, S_IRUGO, sn9c102_show_frame_header, NULL);