Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp428015ybm; Thu, 28 May 2020 06:29:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm+xa15a8OCrsO6aIVDtXPHQV7PLqPOA7PSANk3q12up86SKDo5lnD3WCfR0cMLgU1WnLn X-Received: by 2002:a05:6402:1775:: with SMTP id da21mr3235061edb.271.1590672540165; Thu, 28 May 2020 06:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590672540; cv=none; d=google.com; s=arc-20160816; b=BWkyBEKc4SmsvPrYrO8OmR0dhhe6LDR/0cvkTBvps1VGZG4fbpnCF2ecMwsIqPjJMu C/FgY7UAtdTc8PhFcrj6udCqAM76rW1bdp+GxZ4NZNWN1vHRJhzwj9DWZX7Iwz1ufFGl sZYKaxCIihS+iNdgBxG3+5/DR8ii+2O+Hu+1j/ck5Qwfj5Nram7rVUfHBE81k7baYLr+ fEqlMm9qjAA1f4iaxqUvvveLGbAGPDnQMJ1Uv4AlbLztL7giY7GlPszF2gjl/6zrAOul VtzpCpWXp1bIcwxPin/AVJE3AR6WihXhg1rn4JGZxFaAhnMwAEp1DZKFNU0Gx6JOrP9I JgqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=2/GRDmlrfZh+gIOxv9cg+3XWPTHFPysRHkDFU2wv73w=; b=g9VWave83N5kJT5KMGQ8LwtL2ZKRenClVc7NqLMxPcq/VQ1V6jaVqS/eL+WBYQEsyR KnJqzQBMuf8hpExvAAbbXD++/AJnMzwBoPAQdtnzI6b83ZVeyr4IRzmDQWEQjo0mIHct gF2rBk7/TgZEgkKgbJpJwXAwei7TiMxIdZ/03BPvbwfA+eqhRh1D5vVbnVhEgbIEBDae hKZp7ZVfk+MqBjrDcX6xxl1/FAs3gQaY465RRwwQp69lgDPbvBrCWzjZJFC2/+PR3UiF 8giV0I5RN2TB//aOjdkoJxMz5lY/uEtBDeTx+MQ0TIHHTwNo+Yka31pYYRFqW52CWCDM BTXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=urFcaOUs; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nm1si1379286ejb.378.2020.05.28.06.28.37; Thu, 28 May 2020 06:29:00 -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=@ti.com header.s=ti-com-17Q1 header.b=urFcaOUs; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390305AbgE1N0r (ORCPT + 99 others); Thu, 28 May 2020 09:26:47 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:54280 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390282AbgE1N0l (ORCPT ); Thu, 28 May 2020 09:26:41 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04SDQXuA062739; Thu, 28 May 2020 08:26:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1590672393; bh=2/GRDmlrfZh+gIOxv9cg+3XWPTHFPysRHkDFU2wv73w=; h=From:To:CC:Subject:Date; b=urFcaOUs1aR5sGHtM2/HBNhnAu5BsTg9UlzzE605U+b4qGqDb15Ko2TsBfR259hqG fTmdrNEFdTEWhU+iLALljpgr5N6AxAJk4axE2RCsAd9lPS3+h99EtuSbitBIhU+sVk CWyhlPuiR0/z5z1FCbsQzYN57nnjeB1gjqhr8wHs= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04SDQXEf022303 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 May 2020 08:26:33 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 28 May 2020 08:26:33 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 28 May 2020 08:26:33 -0500 Received: from ula0869644.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04SDQWxR130696; Thu, 28 May 2020 08:26:32 -0500 From: Benoit Parrot To: Hans Verkuil , Prabhakar Lad , Kyungmin Park , Kukjin Kim , Sylwester Nawrocki , Krzysztof Kozlowski , Andrzej Pietrasiewicz , Jacek Anaszewski CC: , , Benoit Parrot Subject: [Patch 0/2] media: v4l2-rect.h: add enclosed rectangle helper Date: Thu, 28 May 2020 08:26:03 -0500 Message-ID: <20200528132605.18339-1-bparrot@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series introduces a new v4l2_rect_enclosed helper function which already exist in some form in several drivers. It then proceed to update those drivers to use the new helper function. Benoit Parrot (2): media: v4l2-rect.h: add enclosed rectangle helper media: use v4l2_rect_enclosed helper drivers/media/platform/am437x/am437x-vpfe.c | 19 +++--------------- .../media/platform/exynos4-is/fimc-capture.c | 18 +++-------------- drivers/media/platform/exynos4-is/fimc-lite.c | 18 +++-------------- drivers/media/platform/s5p-jpeg/jpeg-core.c | 16 ++------------- include/media/v4l2-rect.h | 20 +++++++++++++++++++ 5 files changed, 31 insertions(+), 60 deletions(-) -- 2.17.1