Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp870545pxf; Wed, 7 Apr 2021 13:47:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJZuVUUqnxFPj0Z/J/oUyOHv/Q1alN85Tp/98+0GqbFvI3yfn1SZ7QvlynDQsOqdMge9I2 X-Received: by 2002:a05:6402:1545:: with SMTP id p5mr6696886edx.155.1617828419991; Wed, 07 Apr 2021 13:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828419; cv=none; d=google.com; s=arc-20160816; b=kG44A2sl/3U2sCPRrsvFWHzrGiQs22rttXwz+A3ng+ePGVM1IZiFFx97VPo04Bzh0f MUyJmzM7DmktCZCil034sUlsvryErmSx9NFi9QPcN5zquiaE7vqS1m9MclXfTTllazO/ mj3HInlyGHspB6hqmOzIcvlHOh3igDG5+4nN0mcGPNypeiYETGh0rjvuLqp6azxd9kAL ygbopsD3/+Al6Ywk9AAVKvHDcMrLq7/37zZQ5ZbPrzYj7c2dUJyV7SjViqidNIdIeY61 LvATxX/7Z/FuocvmqhueohC8tnP2SRWRBgi4NQy5hhtb9oV8tF6iiToca6AZU0Gg4Kym KweA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=waneLiTPyr93n33EgplSceqj/1lZ2OvepBeYFzO1CDY=; b=0dHfHfcJQxQR07/bqHqJYDP/3YUsyD3v2Fg0u8gsLxbNtqG7A/u00W4KJ0BIRcSaUA rqhHXGRJRzJOJSsROx7wfploYhuTQU5PK+ATHVl9Ycf/Z5rXJUZQOgIgeNZ5506PjGOS +3LSsybVwsgyAd3IHT5zz2oei2vwrlDAXjGKNYtKWdwLRzdBVJGxyaD28yueezBCL8QC 8S3LxE6sKNNyeciKRzoc+Kg+LDEMkyWa4u1owGAlt9Ybprymo5i3Ro84GK+2v3SOxFVe G6wBWOxcH3PcU+Tus/Yupz8Z+vt5xdc4RVA1/8kcK98+vgkMQz7koTIt3febH5uDYUMd usUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l9gXrPML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mt16si13214233ejc.423.2021.04.07.13.46.36; Wed, 07 Apr 2021 13:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l9gXrPML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350470AbhDGKA4 (ORCPT + 99 others); Wed, 7 Apr 2021 06:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350460AbhDGKAl (ORCPT ); Wed, 7 Apr 2021 06:00:41 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B713FC061756; Wed, 7 Apr 2021 03:00:29 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id o20-20020a05600c4fd4b0290114265518afso849908wmq.4; Wed, 07 Apr 2021 03:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=waneLiTPyr93n33EgplSceqj/1lZ2OvepBeYFzO1CDY=; b=l9gXrPML27gIv5NpFap6oZbVP4Tv4ly4vNEAMCuZsyngDUV4qQvsQd90iJ8zznCYqV tbWny/27otQejhIzIbuxilv2zl1drdUW98+8msECUFcbybKNxlTJVDZ7MAh7CenAUj3Q wFqnBFL5nwSRXWlyrMScKPcUXabEFFrq/bHMJDrYgNTlj93evTTG8E2aPVppw3TIr9cl LNBKVNm6Jbp114DZCw0AayTSL34ugn1IVwGRhv7f74yT6+IrzBNOhFMi0dUfG6IAl+RC IH3C0asFWlUDKBjpcE/BezhKulBZBb7tEDv+FuaIwdroAHGip+ctCZrq6Qiw9twauy/8 Z1CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=waneLiTPyr93n33EgplSceqj/1lZ2OvepBeYFzO1CDY=; b=Mqfu9jfm9wdoRwAtCcAlP9rHnK2s6/6prB1pEMJa+0n3fgWgek3kX2FqVJSngezGMG XvlH8dZ3OrKILP3VdfBbYbzVYgFEIqeugKLGYA/Ks5tev0PFF1zccK1kwOLRwrPH7tnI b4w4zLyZoDvftLU3s3sv8YZP1jaKr3sq1Uo1NEZxrSwVxRDJuTeSsyx6d/laa51l1TD7 F/XjfDdotRlbQkeAp8AStKX87MMRmargldF5e02Y897L+lWhieuettqa8JTOag4w9YUI U+AYv+NopXB7xRaLu4jGbwtfLgU2cw1Yy1KRb9X3r2p/nRamLb4Gvkn+Xix9h6K6LWKU gB8g== X-Gm-Message-State: AOAM5302frWMdmz5g31M9FsmmB/jRlhElGUUGcI09kSxBoJh2+eetldO menlW+t+xXy5pgNg+FMGuuU= X-Received: by 2002:a1c:bc8b:: with SMTP id m133mr2276492wmf.103.1617789628543; Wed, 07 Apr 2021 03:00:28 -0700 (PDT) Received: from ?IPv6:2001:818:de85:7e00:ef5c:3f2a:a646:d6ec? ([2001:818:de85:7e00:ef5c:3f2a:a646:d6ec]) by smtp.gmail.com with ESMTPSA id k131sm5635210wmf.39.2021.04.07.03.00.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Apr 2021 03:00:28 -0700 (PDT) Subject: Re: [Outreachy kernel] [PATCH 1/2] staging: media: omap4iss: Ending line with argument To: Matthew Wilcox Cc: laurent.pinchart@ideasonboard.com, mchehab@kernel.org, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com References: <441d27060ff6477d0ad418f41e194b96373c1f7f.1617287509.git.martinsdecarvalhobeatriz@gmail.com> <20210401152844.GF351017@casper.infradead.org> From: Beatriz Martins de Carvalho Message-ID: Date: Wed, 7 Apr 2021 11:00:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210401152844.GF351017@casper.infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em 01/04/21 16:28, Matthew Wilcox escreveu: > On Thu, Apr 01, 2021 at 04:07:38PM +0100, Beatriz Martins de Carvalho wrote: >> diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c >> index dae9073e7d3c..e8f724dbf810 100644 >> --- a/drivers/staging/media/omap4iss/iss.c >> +++ b/drivers/staging/media/omap4iss/iss.c >> @@ -559,9 +559,10 @@ static int iss_reset(struct iss_device *iss) >> iss_reg_set(iss, OMAP4_ISS_MEM_TOP, ISS_HL_SYSCONFIG, >> ISS_HL_SYSCONFIG_SOFTRESET); >> >> - timeout = iss_poll_condition_timeout( >> - !(iss_reg_read(iss, OMAP4_ISS_MEM_TOP, ISS_HL_SYSCONFIG) & >> - ISS_HL_SYSCONFIG_SOFTRESET), 1000, 10, 100); >> + timeout = iss_poll_condition_timeout(!(iss_reg_read(iss, >> + OMAP4_ISS_MEM_TOP, ISS_HL_SYSCONFIG) >> + & ISS_HL_SYSCONFIG_SOFTRESET), >> + 1000, 10, 100); > This is not a readability improvment. I would factor it out into its > own function. Thanks for the review. How can I do this? I don't know how to do this. Beatriz Martins de Carvalho