From patchwork Sun Aug 13 19:11:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9898011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B558960351 for ; Sun, 13 Aug 2017 19:11:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A42A42623D for ; Sun, 13 Aug 2017 19:11:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 976E428599; Sun, 13 Aug 2017 19:11:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 217382623D for ; Sun, 13 Aug 2017 19:11:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbdHMTLk (ORCPT ); Sun, 13 Aug 2017 15:11:40 -0400 Received: from mail-lf0-f47.google.com ([209.85.215.47]:35429 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbdHMTLj (ORCPT ); Sun, 13 Aug 2017 15:11:39 -0400 Received: by mail-lf0-f47.google.com with SMTP id t128so32572766lff.2 for ; Sun, 13 Aug 2017 12:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:user-agent:date:to:cc:subject:mime-version :content-disposition; bh=zI+6aMJFFFXFteNgmZvo1E3pn906qNAYD79WEHDuA9w=; b=PKJUNJPchUNdKg8JRDJcb+0TNMlXDpfTC8McO8ynzj9j9lCD76IIfTproAsdWZLDz8 myhiCl7VdZWSA0DgoM2khtbnOqbqcjQ58ZobMIrKrYFGwOVekjuDC5c6Aux4O35TpOUa HMhmpXlYH6c4CFDOH5bPkQHllhAe9bR1QaDLjmFTFVdkA1YJGD2dIR4qFbTrD3v9sTt0 IIZebA3d51J473kok6kQi/waTV08uhoo6aufZzE7A8eD/0oeQ19LhLuANML6nUCKkKud sLRXawLWJWwrHuxhMG9wttLdSm4OX30fg1e2Is4gMFBzR0cv56fFh5SNLheWl71lAoj5 2rfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:user-agent:date:to:cc:subject :mime-version:content-disposition; bh=zI+6aMJFFFXFteNgmZvo1E3pn906qNAYD79WEHDuA9w=; b=foXgG66jhZqv3L5vtN/SpA9pmwz5W4kGVbOA80+aHgE9NfWGxWF54ZmcmcXryTd7uJ 8N9FhfThs05QZlDx3zjNELN3skLbiww4Kz5aIKC7RupUMPYpwVoHj9A3+uLbTFK9mQr7 g/ftkN3q/CsbF3w0RbHUH/1b704TlbiqBRy0saJpmcU1XJ7V8bcylvhlurDQndNO+o89 4GhkeKk2unoUPX4qcupNucqRIQXCuM2ZrbrzIhHhe3cGnTwIx9x5TMyz5fHgmK63KAeK vRwgthsWR40K7BSO7mOpMh9qSbKw41oPH2wPryyJE8fpQywRIN45uRUjZhFf2ZeEwzh5 5YKQ== X-Gm-Message-State: AHYfb5g4wTminxhCX+K21+D6Mpz2wMeLfP7140jaz3Vyhkblwfqzr93K 1fA9jacbAt4ZByh0 X-Received: by 10.25.201.216 with SMTP id z207mr7335535lff.206.1502651498273; Sun, 13 Aug 2017 12:11:38 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.86.134]) by smtp.gmail.com with ESMTPSA id f78sm933628lji.45.2017.08.13.12.11.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Aug 2017 12:11:37 -0700 (PDT) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Sun, 13 Aug 2017 22:11:34 +0300 Message-Id: <20170813191134.674818373@cogentembedded.com> User-Agent: quilt/0.64 Date: Sun, 13 Aug 2017 22:11:24 +0300 To: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org, Sergei Shtylyov Subject: [PATCH repost] serial: sh-sci: use of_property_read_bool() MIME-Version: 1.0 Content-Disposition: inline; filename=serial-sh-sci-use-of_property_read_bool.patch Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use more compact of_property_read_bool() call for a boolean property instead of of_find_property() call in sci_parse_dt(). Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- This patch is against the 'tty-next' branch of GregKH's 'tty.git' repo. Reposting as the previous posting dropped Greg's and Jiri's emails... drivers/tty/serial/sh-sci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: tty/drivers/tty/serial/sh-sci.c =================================================================== --- tty.orig/drivers/tty/serial/sh-sci.c +++ tty/drivers/tty/serial/sh-sci.c @@ -3073,8 +3073,7 @@ static struct plat_sci_port *sci_parse_d p->type = SCI_OF_TYPE(match->data); p->regtype = SCI_OF_REGTYPE(match->data); - if (of_find_property(np, "uart-has-rtscts", NULL)) - sp->has_rtscts = true; + sp->has_rtscts = of_property_read_bool(np, "uart-has-rtscts"); return p; }