From patchwork Tue Jun 20 22:02:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 778521 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wshpt3smDz9s0m for ; Wed, 21 Jun 2017 08:09:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FGht/AYf"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wshpt2qGBzDql0 for ; Wed, 21 Jun 2017 08:09:58 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FGht/AYf"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wshgW2wV5zDqhq for ; Wed, 21 Jun 2017 08:03:35 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FGht/AYf"; dkim-atps=neutral Received: by mail-pg0-x242.google.com with SMTP id u62so18478701pgb.0 for ; Tue, 20 Jun 2017 15:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BcOIPL+Xx8ztcjs1zpDkLVMNaVXm7SZXY6WwIHuAN5U=; b=FGht/AYfYYpVf3ckx4tsu5qvkEG4s0BqF6uSSbhX6EI5gEexTMGxubCrzjlZr6zoy4 m38SOxLgiPz6AoFN6jM3P1/CCXORHNQKFleHoj++CGCRo9ScFz692Mu1+oSzD80GsSkI ezHPqve03nBg4D0AxzWwnWMQg2wpG+0aTsul8UAZpZNqIVOF7QVVmXSUhm9QKvMsZodj OORD5bQKCytzkSE3awZTVI0PLsxiQRzyItT8p8cVXPP8dpToywyyOSE8fAiGwY0JqrwF VDySONkcvCLhAXjFWpDnjAuKet1KuzONiRiUjyTQ4zwPwgaA51Zgq1AiWA4GBOr4naXp o1Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BcOIPL+Xx8ztcjs1zpDkLVMNaVXm7SZXY6WwIHuAN5U=; b=gCiw4Q0vZgL0RoT4bJ5uY+qgd8nmUpOPOoz2ox286godEzJH2s6rnmQbwKMBuBAtbJ 5P1a1BPoVGbcXh2SRaGziJLC0+hTlWiNxMvvHlH7Hb2zefeSYfYuOc/lyop0awLkE+K/ PTKKtRs+3PoukzqckjMrncQdfwbCKlPDyIGfv3IxXchsrNZv2C18kYGrk8fTgOabG955 6amqE305OsCRWAUGvgurmnDhkzDeg/f/+omI3poVNq/PMLt/71D9GEH6ir+UwOj4T1ZO F+Rn3lEcdsIXAQZ6Pwz6/ZlxWd151Ba9HAZe8HiyhxifKYiQfLTxMxb248tA6fo958Fb q8zA== X-Gm-Message-State: AKS2vOxBrMUrqbU7oJlUqNtYsVhb5nFjQ//rPdKhrWgPU1aZWkc/PucD 2R7q+BYbsUlNUA== X-Received: by 10.84.135.129 with SMTP id 1mr37788201plj.12.1497996213810; Tue, 20 Jun 2017 15:03:33 -0700 (PDT) Received: from localhost.localdomain (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id c66sm25979462pfl.81.2017.06.20.15.03.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 15:03:33 -0700 (PDT) From: frowand.list@gmail.com To: Rob Herring Subject: [PATCH v6 3/4] of: be consistent in form of file mode Date: Tue, 20 Jun 2017 15:02:51 -0700 Message-Id: <1497996172-821-4-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497996172-821-1-git-send-email-frowand.list@gmail.com> References: <1497996172-821-1-git-send-email-frowand.list@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Frank Rowand checkpatch whined about using S_IRUGO instead of octal equivalent when adding phandle sysfs code, so used octal in that patch. Change other instances of the S_* constants in the same file to the octal form. Signed-off-by: Frank Rowand --- drivers/of/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 941c9a03471d..a4e2159c8671 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -168,7 +168,7 @@ int __of_add_property_sysfs(struct device_node *np, struct property *pp) sysfs_bin_attr_init(&pp->attr); pp->attr.attr.name = safe_name(&np->kobj, pp->name); - pp->attr.attr.mode = secure ? S_IRUSR : S_IRUGO; + pp->attr.attr.mode = secure ? 0400 : 0444; pp->attr.size = secure ? 0 : pp->length; pp->attr.read = of_node_property_read;