Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1371695pxf; Fri, 9 Apr 2021 06:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVC/rlc3gPQdZxf/2/iuAP8TcPyL3hnFG53KDVg0AAIwA2H/4PJ0YVcj7Nm4Haoj7ofT/p X-Received: by 2002:a17:90a:ff07:: with SMTP id ce7mr13622958pjb.0.1617976582152; Fri, 09 Apr 2021 06:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617976582; cv=none; d=google.com; s=arc-20160816; b=jG8ahEKoflUe6QYZeoCJ2sMd0u7eP56jeBE4a+9XlWREw4i6SKPOshuYVOcjktk9NZ z6I22z70UEhpPGOYnzQJZPpSi/iEVhTXicupSo46GhB4NoY08OVauhgKsQlaJ5yrMeOi JMMnzy2BeLnsh3yTgf2k3odb1cWB55XU3MpDDhGAj+3JPqMTxApPfodJT7pvbQzc8yzi hGb9u9kSG+Q+tVkLOpYjvMFNUYqUGmr9k3R+MgS4cjhLScQ9B3ZXYZd8AE+HLX5zotdG Ynsqd8rYUFqAvOVELGCVAqZgK9ZgdUaDj9gXGWaUv4sSkoZpcFS4oSJWHkvobaOTLRJ2 /WQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=Jxu1wXLzUTMlyWpYlkp0R09G/BZWO4W1YMvr+kxglyE=; b=mX3ZI1n3aj3S0mpmm3NBeMFfJm0PmmI+yWJV8aDoYAWDPlRrV6vsdksbRV/erRBaVs kf38hyq9SjEx8cyeMp7hH56uJkpFyCLeTSF++ESXlm3rq1yHTWrXvJ3amp71xRrIHFtm sV+/L75VPIZ0kciloCy4M3/adr2wuJ4g3sezJoVv5CuWorA4qt+YDaRI15j2tP7tj0uW yMEsnBC1HxqpqX1r6aXiaYc7ZBzb+vHf0Z22l15FuRGj9sVKL84la2bWaalZGpIcaO6v up0uUlDyxw1aPsHJ1SOsJpR3oJw7zV+06O6kyxSfJxNUjd6KHq4Bp5dcvAl3DYWmgkPG APqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YoLostOr; 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 h12si3513452plr.246.2021.04.09.06.56.08; Fri, 09 Apr 2021 06:56:22 -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=YoLostOr; 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 S232855AbhDINyZ (ORCPT + 99 others); Fri, 9 Apr 2021 09:54:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbhDINyW (ORCPT ); Fri, 9 Apr 2021 09:54:22 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C461C061760; Fri, 9 Apr 2021 06:54:08 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id i9so5853081qka.2; Fri, 09 Apr 2021 06:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=Jxu1wXLzUTMlyWpYlkp0R09G/BZWO4W1YMvr+kxglyE=; b=YoLostOrOk+/83vDEZ7NMYNOlGqThHG6PtvSR8NTDZ2V0Dz8mLGz/DgAkn3Y+tAqsp exksTB54RI4P7i2E6syq1CqxiyOTJo3txgJH6h84AvFsr2yWt6PxZFtqRVO7wJIxhFzh Ivqpjh6gIQZXZIHxMd8TOsEtOob64rWcT06arGCLlVnjNYbK1wzlaDE1IPYedXUIiBbp Ir0rYwO2Ly4b0y6ydVbM9SyWTJ5HflsuaiOIOMK4eKxZmeeZ8aDB1OZFneNAd+Qm1PIn FI3xAQnQVXRmT6FHrPMA+vkat2c0EPX+hc0s0XYvP+NZGOvFQaMpEEHBvCXqW3Io7+tS k0BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=Jxu1wXLzUTMlyWpYlkp0R09G/BZWO4W1YMvr+kxglyE=; b=A/uvq/jEiv4K7xSuk45xM2+FFT2X8nVa2ovgjpNQRUEpeIsbgMtvGU15VDpzu2ZpK6 j/UlD5UCC7TPvqGkQuGYMuhokh6f2WCHaWPBfCpx4cNiKQs9i7TnJ9uNdziGMFlNE2eI hI0ZV1Lc+nI755BQGEoE8qO3aA2hHU14M/oVwV7Q5NKyCe9aSXdMColA1j8kOYaJ5f8Y zg8dr61Z1IOmcbepBwErbzwSesE5+NRwJBd9e4+hzA9E4E/6ECbaPh8PydhXE6VQlf+k w2glm/v47ZQ+AptQocR8n8FlV6cJrBgxOWQ96eOwZ3jSBZi8GpdtmjmUPMV302q/A7ou OCMQ== X-Gm-Message-State: AOAM533ac+uVNRYoxCEuDiyqsYZqXRKcRNrj+Nc08qHm1sX8V/KvQA1R 96R8ohx8DjxFDjylvsJVWG4= X-Received: by 2002:a37:7cd:: with SMTP id 196mr2553037qkh.33.1617976447481; Fri, 09 Apr 2021 06:54:07 -0700 (PDT) Received: from focaruja ([177.220.174.147]) by smtp.gmail.com with ESMTPSA id l9sm1868895qtv.65.2021.04.09.06.54.06 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Fri, 09 Apr 2021 06:54:07 -0700 (PDT) Date: Fri, 9 Apr 2021 10:54:04 -0300 From: Aline Santana Cordeiro To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com, alinesantanacordeiro@gmail.com Subject: [Outreachy kernel][PATCH] staging: media: hantro: Rewrite macro function in lower case Message-ID: <20210409135404.GA26172@focaruja> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rewrite macros resembling functions #define HANTRO_PP_REG_WRITE and #define HANTRO_PP_RED_WRITE_S in lower case, according with code style. Signed-off-by: Aline Santana Cordeiro --- drivers/staging/media/hantro/hantro_postproc.c | 34 +++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_postproc.c b/drivers/staging/media/hantro/hantro_postproc.c index 6d2a8f2a..06279c0 100644 --- a/drivers/staging/media/hantro/hantro_postproc.c +++ b/drivers/staging/media/hantro/hantro_postproc.c @@ -12,14 +12,14 @@ #include "hantro_hw.h" #include "hantro_g1_regs.h" -#define HANTRO_PP_REG_WRITE(vpu, reg_name, val) \ +#define hantro_pp_reg_write(vpu, reg_name, val) \ { \ hantro_reg_write(vpu, \ &(vpu)->variant->postproc_regs->reg_name, \ val); \ } -#define HANTRO_PP_REG_WRITE_S(vpu, reg_name, val) \ +#define hantro_pp_reg_write_s(vpu, reg_name, val) \ { \ hantro_reg_write_s(vpu, \ &(vpu)->variant->postproc_regs->reg_name, \ @@ -61,7 +61,7 @@ void hantro_postproc_enable(struct hantro_ctx *ctx) return; /* Turn on pipeline mode. Must be done first. */ - HANTRO_PP_REG_WRITE_S(vpu, pipeline_en, 0x1); + hantro_pp_reg_write_s(vpu, pipeline_en, 0x1); src_pp_fmt = VPU_PP_IN_NV12; @@ -79,19 +79,19 @@ void hantro_postproc_enable(struct hantro_ctx *ctx) dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); - HANTRO_PP_REG_WRITE(vpu, clk_gate, 0x1); - HANTRO_PP_REG_WRITE(vpu, out_endian, 0x1); - HANTRO_PP_REG_WRITE(vpu, out_swap32, 0x1); - HANTRO_PP_REG_WRITE(vpu, max_burst, 16); - HANTRO_PP_REG_WRITE(vpu, out_luma_base, dst_dma); - HANTRO_PP_REG_WRITE(vpu, input_width, MB_WIDTH(ctx->dst_fmt.width)); - HANTRO_PP_REG_WRITE(vpu, input_height, MB_HEIGHT(ctx->dst_fmt.height)); - HANTRO_PP_REG_WRITE(vpu, input_fmt, src_pp_fmt); - HANTRO_PP_REG_WRITE(vpu, output_fmt, dst_pp_fmt); - HANTRO_PP_REG_WRITE(vpu, output_width, ctx->dst_fmt.width); - HANTRO_PP_REG_WRITE(vpu, output_height, ctx->dst_fmt.height); - HANTRO_PP_REG_WRITE(vpu, orig_width, MB_WIDTH(ctx->dst_fmt.width)); - HANTRO_PP_REG_WRITE(vpu, display_width, ctx->dst_fmt.width); + hantro_pp_reg_write(vpu, clk_gate, 0x1); + hantro_pp_reg_write(vpu, out_endian, 0x1); + hantro_pp_reg_write(vpu, out_swap32, 0x1); + hantro_pp_reg_write(vpu, max_burst, 16); + hantro_pp_reg_write(vpu, out_luma_base, dst_dma); + hantro_pp_reg_write(vpu, input_width, MB_WIDTH(ctx->dst_fmt.width)); + hantro_pp_reg_write(vpu, input_height, MB_HEIGHT(ctx->dst_fmt.height)); + hantro_pp_reg_write(vpu, input_fmt, src_pp_fmt); + hantro_pp_reg_write(vpu, output_fmt, dst_pp_fmt); + hantro_pp_reg_write(vpu, output_width, ctx->dst_fmt.width); + hantro_pp_reg_write(vpu, output_height, ctx->dst_fmt.height); + hantro_pp_reg_write(vpu, orig_width, MB_WIDTH(ctx->dst_fmt.width)); + hantro_pp_reg_write(vpu, display_width, ctx->dst_fmt.width); } void hantro_postproc_free(struct hantro_ctx *ctx) @@ -146,5 +146,5 @@ void hantro_postproc_disable(struct hantro_ctx *ctx) if (!vpu->variant->postproc_regs) return; - HANTRO_PP_REG_WRITE_S(vpu, pipeline_en, 0x0); + hantro_pp_reg_write_s(vpu, pipeline_en, 0x0); } -- 2.7.4