From patchwork Wed Sep 13 08:04:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9950651 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 7FC8B60245 for ; Wed, 13 Sep 2017 08:05:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7069B283B0 for ; Wed, 13 Sep 2017 08:05:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62B1928FB0; Wed, 13 Sep 2017 08:05:09 +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=-1.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_SPAM,RCVD_IN_SORBS_WEB autolearn=no 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 2CF86283B0 for ; Wed, 13 Sep 2017 08:05:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbdIMIEu (ORCPT ); Wed, 13 Sep 2017 04:04:50 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:32850 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751311AbdIMIEr (ORCPT ); Wed, 13 Sep 2017 04:04:47 -0400 Received: by mail-pg0-f68.google.com with SMTP id i130so5319219pgc.0; Wed, 13 Sep 2017 01:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=gwhcDcZ80H62WDpWkWyIUSO/geUNk39TlRzoyDUwQ/o=; b=Efb23TRFMmQC/2Z5lEMBWvrp7ur6AMU7M/ob9qiVL8opTQ99arynbtWhDrbXJg9Shr aTjdM98tDxrugyMEaFes7x3AJC0elVEaUMjm4LsrZ7gpEefF2nbuH4xE2v9BKeZO0ZrS rYWnU7NY/YMcMa/U1KGZwhN2n3IiUABRwxW9S8ZREzUiaEBt3FwnCytBwFLyzPboB7wv 79WuLDvpEyP6joTqSuqOfQAI+ThSSvfMq+QONe6SGQWoXuv7vyzWSaMVEGytgbVaCdh5 Rr8Y0z/8eJP90cYA3ovh0wqEyOUbpqkljSjuTfvXre6h5ev0I6ZxCgo+bWRt0060uakT rj6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gwhcDcZ80H62WDpWkWyIUSO/geUNk39TlRzoyDUwQ/o=; b=JdbfCjeiadLmHO25oeBDZHNvBAPmyt/AZ+PmHKtmBPKSD/WIUkCnBw0ZgiiYRRvNpm y+OiZue+JkGZsGw0EAT/cWfAwfiztHWxBO0IO6QfsXlVoaOOHWy0ghbvlBQJ2APrLa0o 7cCBdLIwcgtDpUNZJTpOmsL2L04HTKunIV1OFKe/S+7gW0f3HZqJoBCuddwx5Fyuq7dF VkjQwImNjZ/iyHj9vCHHECGbrLb1f3fFrTt00JTEvd/1N1JL4gT0Jjxgl/Wd71MzWiEW 4wQnfQE/sqVtabHJvoQnHUfXS2HxiOs8QeHzaHcfKUPX+D3sb4B44HBsHiGgVCUKnlni yulQ== X-Gm-Message-State: AHPjjUhu8zWzL3qEzdM/dVVaSTXlzQ5r5DKp/VOKPJgwgc7D8v9M2d1C H4qf6BEpjnIOOb6kVhkgxQ== X-Google-Smtp-Source: ADKCNb4CviFsYIrsdfJOfz2EM4LjBjLg6SONz+k3+s2cDRnn38SiSvQOFVPojmDYf4l6xeIKT3n7Nw== X-Received: by 10.98.42.139 with SMTP id q133mr17107896pfq.263.1505289886127; Wed, 13 Sep 2017 01:04:46 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id 75sm11459005pfx.145.2017.09.13.01.04.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 01:04:45 -0700 (PDT) From: Allen Pais To: linux-kernel@vger.kernel.org Cc: mchehab@kernel.org, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Allen Pais Subject: [PATCH] drivers:staging/media:Use ARRAY_SIZE() for the size calculation of the array Date: Wed, 13 Sep 2017 13:34:39 +0530 Message-Id: <1505289879-26163-1-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Allen Pais --- drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c index e882b55..d822918 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c @@ -451,7 +451,7 @@ static enum ia_css_frame_format yuv422_copy_formats[] = { IA_CSS_FRAME_FORMAT_YUYV }; -#define array_length(array) (sizeof(array)/sizeof(array[0])) +#define array_length(array) (ARRAY_SIZE(array)) /* Verify whether the selected output format is can be produced * by the copy binary given the stream format.