From patchwork Tue Oct 25 05:04:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Guilherme Siqueira Moreira X-Patchwork-Id: 10499 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp822936wru; Mon, 24 Oct 2022 22:40:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46NvetG5I7zf+Jlx7wQ0S74v7eSYAacRIbSkJmMPYm7t09xfpD9DGTv83EloGfbiLfVQ++ X-Received: by 2002:a17:907:31c1:b0:742:28a3:5d08 with SMTP id xf1-20020a17090731c100b0074228a35d08mr30658890ejb.112.1666676416165; Mon, 24 Oct 2022 22:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666676416; cv=none; d=google.com; s=arc-20160816; b=hm/4GZn/d4DQz41cy8OAkODFkh8NfqUp9dHSFeylJS1Sr67zKanoHWyfeqM++95fOk uD71FvMfSWPRda6KMiDmzOV+C/Js1KeY6KEIAgq6N3H9w/BOCSa9vU3mU4CnUa5phZRZ TUbx8QeIIowfoP+9gZpQLTQFER30y+PJeAn0uDr7K0AdDbwSSwqtWj1HZCveNeXaRUKv Pued5+OvFzsha8RB0nrsbMI7Io56u5fwxbwi4fDBMNVf+i7HaBN1ddy33yQebscwHiMZ baPiK7PsLAKFbrETpT/pZRaTdhcxLMBI/cxtRMAtC/pAl7Ylewceh8s9vDYMCeyzwSAr N1cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=j1lYGNJg0gApexWL949sEnOeM+1QJ7GI5fjt0dDISPA=; b=x91/l5m2EmY/chzX6Ae+ECMa7/jWclqAkvJlF6AZDXdW5tqZx40wzR5IiIPlq7PWeE D1aCtjvwvF2FFX//ZacyxnX+7/6gbCfy1xxd6mFn6mz9ffTCEv/bOI747IouCrFkSU33 xA2eoewt8u3vJUit8UN0R/ni748/bOQ+HLsHDyYb6hzDgRB7i7S5eVtOfxG3gtDyxfrV i2IRM2FSGTCS6BPC9bu/LAbDpMypvtYc+8eQCOgfRkHkfiXk+TpDXipZ7Rvt1trJckrr y5H3PZqn9iK6ZPDPBVStvycEFo0uB5HHUBoq5p/Dk2EfCYLO2V4rNr7Lv3wXIrGXj/Ew zcGg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a24-20020a170906469800b00783d1a13d69si1597487ejr.231.2022.10.24.22.39.52; Mon, 24 Oct 2022 22:40:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbiJYF02 (ORCPT + 99 others); Tue, 25 Oct 2022 01:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiJYF0Z (ORCPT ); Tue, 25 Oct 2022 01:26:25 -0400 X-Greylist: delayed 1280 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 24 Oct 2022 22:26:25 PDT Received: from gateway22.websitewelcome.com (gateway22.websitewelcome.com [192.185.46.224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 321B3BBE1D for ; Mon, 24 Oct 2022 22:26:24 -0700 (PDT) Received: from atl1wswcm04.websitewelcome.com (unknown [50.6.129.165]) by atl1wswob02.websitewelcome.com (Postfix) with ESMTP id 268911B394 for ; Tue, 25 Oct 2022 05:05:01 +0000 (UTC) Received: from br984.hostgator.com.br ([162.241.203.37]) by cmsmtp with ESMTP id nC7Yomv9ZgEOMnC7YoEZka; Tue, 25 Oct 2022 05:05:01 +0000 X-Authority-Reason: nr=8 Received: from [177.194.67.221] (port=44582 helo=arch-avell.meuintelbras.local) by br984.hostgator.com.br with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1onC7X-001KDW-TL; Tue, 25 Oct 2022 02:05:00 -0300 From: Pedro Guilherme Siqueira Moreira To: laurent.pinchart@ideasonboard.com Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Pedro Guilherme Siqueira Moreira Subject: [PATCH v2 1/3] media: uvc_driver: fix missing newline after declarations Date: Tue, 25 Oct 2022 02:04:48 -0300 Message-Id: <20221025050450.1743072-1-pedro.guilherme@espectro.eng.br> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - br984.hostgator.com.br X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - espectro.eng.br X-BWhitelist: no X-Source-IP: 177.194.67.221 X-Source-L: No X-Exim-ID: 1onC7X-001KDW-TL X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (arch-avell.meuintelbras.local) [177.194.67.221]:44582 X-Source-Auth: pedro.guilherme@espectro.eng.br X-Email-Count: 1 X-Source-Cap: ZXNwZWN0ODU7ZXNwZWN0ODU7YnI5ODQuaG9zdGdhdG9yLmNvbS5icg== X-Local-Domain: yes X-CMAE-Envelope: MS4xfPqS8vGiHVTShZo100c4PoQMv60P+fklr+y0GGnHEJMyercji0iSNI+UOFnAksNRdkXxefRMbbFusTImqIpMqhmA0pmCjnS8HmreA5RzA7IKMO+yhcP4 vkGNDDaH+IaStK75BH/J9YlMCjs9a49FW+xgL/M3txYqCyMMEmH9kcTbc3UJ+jFZvP/Mx04LypPOVVpJZvRBS5zcIDinIaWGULJUOOy5kt0S0/OQQnZdW4ij X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747622339980602871?= X-GMAIL-MSGID: =?utf-8?q?1747636889690058376?= Fixes 'Missing a blank line after declarations' warning issued by scripts/checkpatch.pl on drivers/media/usb/uvc/uvc_driver.c Signed-off-by: Pedro Guilherme Siqueira Moreira Reviewed-by: Laurent Pinchart --- drivers/media/usb/uvc/uvc_driver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 215fb483efb0..b591ad823c66 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -732,6 +732,7 @@ static int uvc_parse_streaming(struct uvc_device *dev, /* Parse the alternate settings to find the maximum bandwidth. */ for (i = 0; i < intf->num_altsetting; ++i) { struct usb_host_endpoint *ep; + alts = &intf->altsetting[i]; ep = uvc_find_endpoint(alts, streaming->header.bEndpointAddress); @@ -1859,12 +1860,14 @@ static void uvc_delete(struct kref *kref) list_for_each_safe(p, n, &dev->chains) { struct uvc_video_chain *chain; + chain = list_entry(p, struct uvc_video_chain, list); kfree(chain); } list_for_each_safe(p, n, &dev->entities) { struct uvc_entity *entity; + entity = list_entry(p, struct uvc_entity, list); #ifdef CONFIG_MEDIA_CONTROLLER uvc_mc_cleanup_entity(entity); @@ -1874,6 +1877,7 @@ static void uvc_delete(struct kref *kref) list_for_each_safe(p, n, &dev->streams) { struct uvc_streaming *streaming; + streaming = list_entry(p, struct uvc_streaming, list); usb_driver_release_interface(&uvc_driver.driver, streaming->intf); From patchwork Tue Oct 25 05:04:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Guilherme Siqueira Moreira X-Patchwork-Id: 10493 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp812787wru; Mon, 24 Oct 2022 22:08:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Qa0cxR8C6P5n4AekfRw8beKP3BNEVs2fKpk8S24E8JAc2k4utmZs9HS9i7vgodnUa5eVW X-Received: by 2002:a17:90b:1bc3:b0:20d:75b8:ee74 with SMTP id oa3-20020a17090b1bc300b0020d75b8ee74mr80167848pjb.1.1666674504771; Mon, 24 Oct 2022 22:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666674504; cv=none; d=google.com; s=arc-20160816; b=WrqvKVrSUalxzRMoRN5pMYb4KcUOEYesUTBGcXb06MMnnD3RFz/eFBkkSi/MNLnfZX iaZE+t9oaA7//e9t4YPTm3ldQ+66kfGQGHx89S4I5RvDbu3u77dnfiXcBkDogtaqyYfe W0gzuAr0vCQnfzUe6/onaUsrLyT3nYW75HORkgPUQxTyTGismbEu0NSqP/xeyWTfoauD 1+aoItaaGoLh/60BCAH3qIy96SSl21xM2JhjfKWIttnXmIfdXlWqy0kHChFynzCbOxbQ +S57CDQlXTKZHb5fdSXJhhcTpNqvWAyZenMjpbrWGnSum0iyVTlIMBrbMePnZb23PfNA Y6tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xlw3Ku6SsSLQuNSHIv5X2ecPLccvNc0JAzmgpyzfdFw=; b=nORcoFOyL7qkZcZDQ1d3pnBV9IWbOTc21q0oQ25/Y+onJOBJJuCMCDfuZRo6FLiLU0 53gGI+0DE5w1jM4dS1ktWhqcWhjNJOUR1mnF0OxL3ZNq7I/en1hxd/hIHiIMcutuPwjB DniazCzyqxqpO6uTCpsKAM9l7yNl0yhvx8xzpSPq0pkVvfVxA8jWA5j2vtzeHezAne0v 972WM0SNYgSea+z18nOQMLecjwCPYN1MPMnoi5eJbzGx0XNmpHGr2ikI4oVMSDx/2tQO 9pb+oiJ50OmC9+llfjJsrwBP2hvpPDXsXZ2TDW+jV5dKZtuuz3AT8KCDnxHT2LY8ObpE o12Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa10-20020a17090b1bca00b00205e1caca43si2619045pjb.34.2022.10.24.22.08.11; Mon, 24 Oct 2022 22:08:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230428AbiJYFHM (ORCPT + 99 others); Tue, 25 Oct 2022 01:07:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbiJYFGu (ORCPT ); Tue, 25 Oct 2022 01:06:50 -0400 Received: from gateway31.websitewelcome.com (gateway31.websitewelcome.com [192.185.144.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91F12BE503 for ; Mon, 24 Oct 2022 22:05:08 -0700 (PDT) Received: from atl1wswcm05.websitewelcome.com (unknown [50.6.129.166]) by atl3wswob02.websitewelcome.com (Postfix) with ESMTP id 21BA19925F for ; Tue, 25 Oct 2022 05:05:03 +0000 (UTC) Received: from br984.hostgator.com.br ([162.241.203.37]) by cmsmtp with ESMTP id nC7aosVdoP2h5nC7aoW5xF; Tue, 25 Oct 2022 05:05:03 +0000 X-Authority-Reason: nr=8 Received: from [177.194.67.221] (port=44582 helo=arch-avell.meuintelbras.local) by br984.hostgator.com.br with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1onC7Z-001KDW-T5; Tue, 25 Oct 2022 02:05:02 -0300 From: Pedro Guilherme Siqueira Moreira To: laurent.pinchart@ideasonboard.com Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Pedro Guilherme Siqueira Moreira Subject: [PATCH v2 2/3] media: uvc_driver: fix assignment inside if condition Date: Tue, 25 Oct 2022 02:04:49 -0300 Message-Id: <20221025050450.1743072-2-pedro.guilherme@espectro.eng.br> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025050450.1743072-1-pedro.guilherme@espectro.eng.br> References: <20221025050450.1743072-1-pedro.guilherme@espectro.eng.br> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - br984.hostgator.com.br X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - espectro.eng.br X-BWhitelist: no X-Source-IP: 177.194.67.221 X-Source-L: No X-Exim-ID: 1onC7Z-001KDW-T5 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (arch-avell.meuintelbras.local) [177.194.67.221]:44582 X-Source-Auth: pedro.guilherme@espectro.eng.br X-Email-Count: 5 X-Source-Cap: ZXNwZWN0ODU7ZXNwZWN0ODU7YnI5ODQuaG9zdGdhdG9yLmNvbS5icg== X-Local-Domain: yes X-CMAE-Envelope: MS4xfBcoFGPeWcnS/44fq7tqiYGxE4+w21DUsFfHVWnND23YiYqMLM3u7XITcqlbDcDDy48qSTVQW2/og0+9HA8CFzUicDpYYR5jbKSy52kDvcfe7BpLt98J I+K0xbIWiyzuyPu1395sfqBEOdIr4yg5HvbFYMz9Mdw/ZsnRk8G7vutGF/35qnN76s9XCmeRVIfrKodkXfF6MEJ1AdAb46BcG/xr1da871EcS1mCLg8aWf/P X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747634885885260461?= X-GMAIL-MSGID: =?utf-8?q?1747634885885260461?= Fixes 'do not use assignment in if condition' errors issued by scripts/checkpatch.pl on drivers/media/usb/uvc/uvc_driver.c Signed-off-by: Pedro Guilherme Siqueira Moreira Reviewed-by: Ricardo Ribalda Reviewed-by: Laurent Pinchart --- drivers/media/usb/uvc/uvc_driver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index b591ad823c66..7b6c97ad3a41 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -1174,7 +1174,8 @@ static int uvc_parse_control(struct uvc_device *dev) buffer[1] != USB_DT_CS_INTERFACE) goto next_descriptor; - if ((ret = uvc_parse_standard_control(dev, buffer, buflen)) < 0) + ret = uvc_parse_standard_control(dev, buffer, buflen); + if (ret < 0) return ret; next_descriptor: @@ -2213,7 +2214,8 @@ static int uvc_probe(struct usb_interface *intf, usb_set_intfdata(intf, dev); /* Initialize the interrupt URB. */ - if ((ret = uvc_status_init(dev)) < 0) { + ret = uvc_status_init(dev); + if (ret < 0) { dev_info(&dev->udev->dev, "Unable to initialize the status endpoint (%d), status interrupt will not be supported.\n", ret); From patchwork Tue Oct 25 05:04:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Guilherme Siqueira Moreira X-Patchwork-Id: 10498 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp822910wru; Mon, 24 Oct 2022 22:40:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+b+WmmqmiAQmECB0G5tBDSF/B6+D2VEsFpaAoY+fKJL/sQ1uYEk+2UaoOW8dfPxTzT01B X-Received: by 2002:a05:6402:1d4a:b0:461:d375:7927 with SMTP id dz10-20020a0564021d4a00b00461d3757927mr6907519edb.18.1666676422554; Mon, 24 Oct 2022 22:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666676422; cv=none; d=google.com; s=arc-20160816; b=S+tTKm53ya3pVcw/rgK1vLqaeox7p9tQREe7kiegctT7W/9Rw4H5iY4y4sWxcNJ9Tq 1Oe2a4gq7uhcQpxAdnMbcJUdzNCjuIJgnmHCr0pkDkPNQh4JXDAE5mjBnNeWz3veNOZ+ k7TOUyo3iUB0OsY+Yn1DmJsgKeJ//rBA0+p+a65B2aj6BqY05JFQGVlnh+hlDiaKEiQ1 s0lvVEoDEeRxGeEhSpApaw5pwcxH3rwjS1pIV6chrHTPsGyv2Lf9hde/s2HPqDLzKV/v VdP6u0pyioWbx6QAOGPHS2ecFGypodC1oVoAO7cr6H3yknWIe3qQX73IUzP0exyIC2O6 oQlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZCIPmHNiCZmrrCPTBNizWf39AaAFiaaVa8TZcSYB+mY=; b=sPLSIVaKFPlG+0+riiFN1w2j3mznw5GYDEh9scbA/lpeDJbzxfC+Dc6FJFOVm9+Ok9 spR+xcAEgfmvk4EY6h5LRC4OkNRpkb4Zn2lMDP71v/fHZ+UYSJD5NCF2APIpjpv6je9R N73qUtBg+uupf0/D++BsuqsFJFaYBU6OdlMBq+MsHl6XFyKhFJxI/EGfRGgMUE6RMH06 hlunAASIfSC5KVaJ9wIK8nveZVe1EE7vinFWBmZV9+qD0ZxIiRYrb/GruPppb5LAJNn5 JwwQPFygqNcs9Fr3qHFeOlgP09gaCZvuegT0v9buuJFKDWcLCXLMkuMvuWfsGn7A+jfW VB3A== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb8-20020a1709076d8800b0073da0ce043csi1941069ejc.619.2022.10.24.22.39.58; Mon, 24 Oct 2022 22:40:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230337AbiJYF1c (ORCPT + 99 others); Tue, 25 Oct 2022 01:27:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiJYF1a (ORCPT ); Tue, 25 Oct 2022 01:27:30 -0400 X-Greylist: delayed 1326 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 24 Oct 2022 22:27:29 PDT Received: from gateway20.websitewelcome.com (gateway20.websitewelcome.com [192.185.59.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 792E9B87AB for ; Mon, 24 Oct 2022 22:27:29 -0700 (PDT) Received: from atl1wswcm05.websitewelcome.com (unknown [50.6.129.166]) by atl1wswob01.websitewelcome.com (Postfix) with ESMTP id BBCB7400E00E8 for ; Tue, 25 Oct 2022 05:05:04 +0000 (UTC) Received: from br984.hostgator.com.br ([162.241.203.37]) by cmsmtp with ESMTP id nC7cosVhQP2h5nC7coW60S; Tue, 25 Oct 2022 05:05:04 +0000 X-Authority-Reason: nr=8 Received: from [177.194.67.221] (port=44582 helo=arch-avell.meuintelbras.local) by br984.hostgator.com.br with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1onC7b-001KDW-Qk; Tue, 25 Oct 2022 02:05:04 -0300 From: Pedro Guilherme Siqueira Moreira To: laurent.pinchart@ideasonboard.com Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Pedro Guilherme Siqueira Moreira Subject: [PATCH v2 3/3] media: uvc_driver: fix usage of symbolic permissions to octal Date: Tue, 25 Oct 2022 02:04:50 -0300 Message-Id: <20221025050450.1743072-3-pedro.guilherme@espectro.eng.br> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025050450.1743072-1-pedro.guilherme@espectro.eng.br> References: <20221025050450.1743072-1-pedro.guilherme@espectro.eng.br> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - br984.hostgator.com.br X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - espectro.eng.br X-BWhitelist: no X-Source-IP: 177.194.67.221 X-Source-L: No X-Exim-ID: 1onC7b-001KDW-Qk X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (arch-avell.meuintelbras.local) [177.194.67.221]:44582 X-Source-Auth: pedro.guilherme@espectro.eng.br X-Email-Count: 9 X-Source-Cap: ZXNwZWN0ODU7ZXNwZWN0ODU7YnI5ODQuaG9zdGdhdG9yLmNvbS5icg== X-Local-Domain: yes X-CMAE-Envelope: MS4xfJR16QThSX1oiTq/mCJju+6F1pn63C15mkkSdDmP/gXuWParwvWRhfm14lzkpJ8C3NlLbVJYxs2w4/ZjOl2GbpiGUSfWbFnm6SDdUXimUaSGz69LfL0F AEbqkAEobDgD/kRTtTKbTQYpmBNSa+LYGJ2GqjmaehB/GDRBOq1HpaaC3qTFRxEluxeNY9QAFFccBjjW2FnzM/ZGd/wdoao3ZGtcQMMp8xEP2sBx93u6xGFI X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747636896142527790?= X-GMAIL-MSGID: =?utf-8?q?1747636896142527790?= Change symbolic permissions to octal equivalents as recommended by scripts/checkpatch.pl on drivers/media/usb/uvc/uvc_driver.c. Signed-off-by: Pedro Guilherme Siqueira Moreira Reviewed-by: Ricardo Ribalda Reviewed-by: Laurent Pinchart --- drivers/media/usb/uvc/uvc_driver.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 7b6c97ad3a41..c5adad4e51e2 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2362,17 +2362,17 @@ static int uvc_clock_param_set(const char *val, const struct kernel_param *kp) } module_param_call(clock, uvc_clock_param_set, uvc_clock_param_get, - &uvc_clock_param, S_IRUGO|S_IWUSR); + &uvc_clock_param, 0644); MODULE_PARM_DESC(clock, "Video buffers timestamp clock"); -module_param_named(hwtimestamps, uvc_hw_timestamps_param, uint, S_IRUGO|S_IWUSR); +module_param_named(hwtimestamps, uvc_hw_timestamps_param, uint, 0644); MODULE_PARM_DESC(hwtimestamps, "Use hardware timestamps"); -module_param_named(nodrop, uvc_no_drop_param, uint, S_IRUGO|S_IWUSR); +module_param_named(nodrop, uvc_no_drop_param, uint, 0644); MODULE_PARM_DESC(nodrop, "Don't drop incomplete frames"); -module_param_named(quirks, uvc_quirks_param, uint, S_IRUGO|S_IWUSR); +module_param_named(quirks, uvc_quirks_param, uint, 0644); MODULE_PARM_DESC(quirks, "Forced device quirks"); -module_param_named(trace, uvc_dbg_param, uint, S_IRUGO|S_IWUSR); +module_param_named(trace, uvc_dbg_param, uint, 0644); MODULE_PARM_DESC(trace, "Trace level bitmask"); -module_param_named(timeout, uvc_timeout_param, uint, S_IRUGO|S_IWUSR); +module_param_named(timeout, uvc_timeout_param, uint, 0644); MODULE_PARM_DESC(timeout, "Streaming control requests timeout"); /* ------------------------------------------------------------------------