Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030547AbcCQMVE (ORCPT ); Thu, 17 Mar 2016 08:21:04 -0400 Received: from down.free-electrons.com ([37.187.137.238]:46419 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030285AbcCQMVB (ORCPT ); Thu, 17 Mar 2016 08:21:01 -0400 Date: Thu, 17 Mar 2016 13:20:58 +0100 From: Alexandre Belloni To: Paul Cercueil Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Ralf Baechle , Alessandro Zummo , Paul Burton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, rtc-linux@googlegroups.com Subject: Re: [PATCH 4/5] rtc: jz4740_rtc: Add support for acting as the system power controller Message-ID: <20160317122058.GE3362@piout.net> References: <1457217531-26064-1-git-send-email-paul@crapouillou.net> <1457217531-26064-4-git-send-email-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1457217531-26064-4-git-send-email-paul@crapouillou.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 704 Lines: 21 On 05/03/2016 at 23:38:50 +0100, Paul Cercueil wrote : > + if (of_device_is_system_power_controller(pdev->dev.of_node)) { > + if (!pm_power_off) { > + /* Default: 60ms */ > + rtc->reset_pin_assert_time = 60; > + device_property_read_u32(&pdev->dev, It is probably more efficient to use of_property_read_u32 directly. Any particular reason to use device_property_read_u32? > + } else { > + dev_err(&pdev->dev, > + "Poweroff handler already present!\n"); I'm not found of that alignement, it is probably better to let the string go over 80 chars. checkpatch will not complain. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com