Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp544451iol; Thu, 9 Jun 2022 08:47:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRkn2cxxs5l6ot+LCEeXraFx1Mnw0XZoTT4klvSr609paCviaDTwiUvYW37u2cxPhyNY1D X-Received: by 2002:a65:6b8a:0:b0:3db:7dc5:fec2 with SMTP id d10-20020a656b8a000000b003db7dc5fec2mr34103223pgw.223.1654789655340; Thu, 09 Jun 2022 08:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654789655; cv=none; d=google.com; s=arc-20160816; b=MlAnjDL6vAqiVRHa+0elQpz+IbLyKF3MROFkVJjb1zakWQCvtirSGmsst4X/B+KLLd 1ZdftNCgSEJU9qTfsAA5tojQzrIpsf1gGisyB+3QUwuSdDxB/bIuapFB1V65R5D4lNDL b8/6wsMolrXQT7Op31FwkkDvGW3H0eH22Nq/XYQkNRhJfzoXC6aLLe/w3gtZg/9mRDv4 J4UmO/cORVLLIUqhW+b3dbOrYYuWQmtAvS4ksnaNh4ahAhB3OUf1LGLK4AXXqmVmU2Pr vi5TdYhL69FsOKir8v1syP1R6WDn6CcVBmBFqjP+8qFXXxEdCDM18yQycIBiaxbRyCVv mBFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=fBBK0lRj7eRfQiKEbQnTSqGbA1p8lUqyMPbkLL/n2hM=; b=nn7Ljp58gXWE/supqMZlAVRADoWZeOAlF51FeqR/ZzjtVR6pOHepqzIf5lhEmMS0ti hcLb2ZATgBtatUdsoV53PjZ14rjQiBx3ozH18F9p2+sS4Mm93iycia1/fo59ssBNvsr/ 7q+Cy9ykpJuBEAvSymodeZTIXa3qDTNJdrtLnwlpSjGfbYLuKGszVW7gg5XXGpQlRYEV ziCs00VwNdjqMmJTYU0WFDAR0lTLN3BPsBlYCuJOxKaW2DfeCqXo1QHSutbawe3qd6z5 MYbvGbhVhFfzKfMJaw3tRFOXbPRczPNRlianvnezIlhR14BzrmEwLxsI7oLIB2wzRFN1 Z+hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=IZEyTsmC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a6555cb000000b003fd8a13f195si22028860pgs.76.2022.06.09.08.47.18; Thu, 09 Jun 2022 08:47:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=IZEyTsmC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344112AbiFIPg0 (ORCPT + 99 others); Thu, 9 Jun 2022 11:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237688AbiFIPgY (ORCPT ); Thu, 9 Jun 2022 11:36:24 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2C141DC862 for ; Thu, 9 Jun 2022 08:36:22 -0700 (PDT) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 259CqInK014220; Thu, 9 Jun 2022 17:36:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=fBBK0lRj7eRfQiKEbQnTSqGbA1p8lUqyMPbkLL/n2hM=; b=IZEyTsmCQsBm3CFjoZJzXyY6TStR7QMuWnhr6iKGYgESbiU3gOMRrGEOWBAVh/wlTiMO Y3VFPey3Iy9SjY1JsagqevT/BsZ5bXY8wMI9uW0CueyYvrHlPWy+s8TJTuvvRa0/zp06 Ssxg4Sa7BlFp8VfvZ1Em0vVzmnSlfPOr/Omfzgp6L2bquQcZdHbS9s/2Uk8zDM7YqhiN 8Q415dk5ac8aHwR8CZzKD2sWiFicN74Ls+w0hyUSJcU2NriiLQn4q1FdWKmUrguqILkj Sq7wNFxyI23CN5s12zJWv6cx+fuXs1U4rn9RnfmJhGRAG4eBI9+bkPKnrV/uSJ5TATuY lg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3gj3cu1smg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jun 2022 17:36:14 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F0FB110002A; Thu, 9 Jun 2022 17:36:13 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E9B59221793; Thu, 9 Jun 2022 17:36:13 +0200 (CEST) Received: from [10.201.21.53] (10.75.127.51) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Thu, 9 Jun 2022 17:36:12 +0200 Message-ID: Date: Thu, 9 Jun 2022 17:36:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] drm/stm: ltdc: fix various coding-style warnings Content-Language: en-US To: Yannick Fertre , Philippe Cornu , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue , , , , References: <20220603134334.592805-1-yannick.fertre@foss.st.com> From: Raphael Gallais-Pou In-Reply-To: <20220603134334.592805-1-yannick.fertre@foss.st.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-09_12,2022-06-09_01,2022-02-23_01 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks Acked-by: Raphael Gallais-Pou Cheers, Raphaƫl On 6/3/22 15:43, Yannick Fertre wrote: > Fix issues reported by checkpatch.pl: > - Braces {} should be used on all arms > - Blank lines > > Signed-off-by: Yannick Fertre > --- > drivers/gpu/drm/stm/ltdc.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c > index a4098aaff243..6a9f613839b5 100644 > --- a/drivers/gpu/drm/stm/ltdc.c > +++ b/drivers/gpu/drm/stm/ltdc.c > @@ -908,9 +908,9 @@ static void ltdc_crtc_mode_set_nofb(struct drm_crtc *crtc) > drm_connector_list_iter_end(&iter); > } > > - if (bridge && bridge->timings) > + if (bridge && bridge->timings) { > bus_flags = bridge->timings->input_bus_flags; > - else if (connector) { > + } else if (connector) { > bus_flags = connector->display_info.bus_flags; > if (connector->display_info.num_bus_formats) > bus_formats = connector->display_info.bus_formats[0]; > @@ -1917,7 +1917,6 @@ int ltdc_load(struct drm_device *ddev) > DRM_ERROR("Failed to register LTDC interrupt\n"); > goto err; > } > - > } > > crtc = devm_kzalloc(dev, sizeof(*crtc), GFP_KERNEL);