From patchwork Sun Aug 13 19:07:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9898003 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 74139603B4 for ; Sun, 13 Aug 2017 19:08:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6575E2841D for ; Sun, 13 Aug 2017 19:08:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A4E728589; Sun, 13 Aug 2017 19:08:19 +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 F03832858A for ; Sun, 13 Aug 2017 19:08:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751057AbdHMTIS (ORCPT ); Sun, 13 Aug 2017 15:08:18 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:33019 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbdHMTIR (ORCPT ); Sun, 13 Aug 2017 15:08:17 -0400 Received: by mail-lf0-f52.google.com with SMTP id d17so32529917lfe.0 for ; Sun, 13 Aug 2017 12:08:16 -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=Y3EVYp5jUCQcu73/qhr7/Zm1SQ0TxIoCkaZVHpf09po=; b=aFSyfUrhTKtT+Fkp3f7XjyfXCSdqlCCsLrY2hcIxfsPph7E3QhoYWOrD/0GsLKKeJT a9RFXWzz9R8SV39Ag2uoC4tPWdjM3Je0hL6JFd4jKLdql3NllH+6SQL2dhwGZYQAJlAE VfaqEqXfuUCHG4O2n8GIQHyduwFVglLCsvyuwK3vjTBwDwcC+dE9V69DJNVuLct6Yztg 1F6il4wI3AojUVNjlgxMAibw/8Pj6+Bo5RRT0rNLZbPvm1jMreGbgW9FuunzhAVBXiXW btDppn0sqbhqFhIKy/TNEfQGJsmf3c/nLIS8d9RqGn9Ag2NQV/Xk6AhCkc+uVJepFBqP GKBA== 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=Y3EVYp5jUCQcu73/qhr7/Zm1SQ0TxIoCkaZVHpf09po=; b=LDeK0G73A0i5ZT2L5y4QQ8m4SKVONrggMw/BLVcqVFSOvKe5iRggnq/GIgS6llq9yq SVF7cPQ4tL6hpX1pASqJpJVdsaA2zRjqdSBEnL/ff20soEMBbJvGQpiXbd6Wd5QU/Ib9 4sMgb7hKGjcYxMaMRhx+gs+cZwfFMK36ashNIkigU6XTY93EPnySBQ2wgFNOxMON7H1a Q4/6F74pz04G+9FXoE1RCZfm6RVWjrpaY6dtQ3nLIJ+xp6OccLibmGLeg+leprjnbwOq aAoOlQxD+li85L053+T/sxM4YvlbdxSJTM/e9dDRjNBX7r0LJ25FJq5HHnOuA6M0CAiz DZyQ== X-Gm-Message-State: AHYfb5iKYChdB/ws0+EaDvmHzYyQc/Rm8Y/l71Ss3U2AmYLw89/aquDU /wxUtEbvPsB1qWmy X-Received: by 10.25.56.3 with SMTP id f3mr6524402lfa.253.1502651295460; Sun, 13 Aug 2017 12:08:15 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.86.134]) by smtp.gmail.com with ESMTPSA id n72sm908718lje.51.2017.08.13.12.08.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Aug 2017 12:08:13 -0700 (PDT) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Sun, 13 Aug 2017 22:08:11 +0300 Message-Id: <20170813190811.352748420@cogentembedded.com> User-Agent: quilt/0.64 Date: Sun, 13 Aug 2017 22:07:39 +0300 To: linux-serial@vger.kernel.org ("open list:SERIAL DRIVERS") Cc: linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org, Sergei Shtylyov Subject: [PATCH] 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 --- This patch is against the 'tty-next' branch of GregKH's 'tty.git' repo. 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; }