From patchwork Wed Jun 12 08:12:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 166526 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3378330ilk; Wed, 12 Jun 2019 01:12:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEXG11ba5E6GVjc4JuHNPJfgDBP2OgkBceZKJkqOnXTDVopWSayF79Y8kWvry6SQ+cZbbT X-Received: by 2002:a17:902:f095:: with SMTP id go21mr5288333plb.58.1560327138358; Wed, 12 Jun 2019 01:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560327138; cv=none; d=google.com; s=arc-20160816; b=eB01nWP1iF13oPxp6mVL5jX2qs5u/zcVbEp/2Qn+r6P1GT1U5q+eBZONE2FRPPuVb+ a+JbR4zxclSBdIs5iAWykLRAYwum52QT3m3jzqgesgdgHZXHktSNB7TbVT+zyZaGNdfn L/EE+4pEd+uLWhhnAS67VHfkngCc8wusuRXMjGy8UBUgYl8bJkdCuwuWJAgtIVCvYMZP GtG2tWSgvI9aY+ntPkOlqmMAEUT01mF3msthGj4sclQ+8VO63W11VO+7iqsn5ro3RmsN WG2204ZNDS/ZfYOMyr8q9x/kXlgNqZzqJN7NZQgeMMkIQDr4BrJOICdk0BwvObH+fEdQ HNkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ONQAntTAACJE0IJDBpBlglBaprB61LRkMC27jTtksx0=; b=cSjRLUGRXxKUFnOSFpcR9cNB40GtgX8Smmj+7wkDhB66lPeE6oW0BgK0uNEvgPpirY FWsYSsB2DuWX1mk91ZiwrqEBrLGyIUDAODdZKmRnE8VeXSFEH++xaGo6WVYZodeIIgdK zDp5br4RCo9LIv6jjc3lmseZxi/Ml8hNcy5ZJkP6SqADvQDwxxtSmtUotjNOWR4FRPF9 Qsj3xYbZIe53v74MIISoTb2YFlyFcaLx2YfdA5OkYUM777I5EEIyHTUFaSUqR2ZaRNqd gTmPZI3oPkeQeu3SVtLmPYm36MeTMGvl6kZBNVU76qMH7UXYUntwfu4hFNRil4/BX2U7 ztxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AXyNFWdI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si14501857pgp.179.2019.06.12.01.12.18; Wed, 12 Jun 2019 01:12:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AXyNFWdI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730477AbfFLIMQ (ORCPT + 30 others); Wed, 12 Jun 2019 04:12:16 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45980 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729382AbfFLIMP (ORCPT ); Wed, 12 Jun 2019 04:12:15 -0400 Received: by mail-lf1-f65.google.com with SMTP id u10so11328879lfm.12 for ; Wed, 12 Jun 2019 01:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ONQAntTAACJE0IJDBpBlglBaprB61LRkMC27jTtksx0=; b=AXyNFWdIUMFiS8tUU/hhAXav92vQH5sxz/gb/odm7JFXZrvG/WYmyxxmOq6lSDjfSb 4+NZB0p4M9//5KX9rIwkAzsUMtyfgkGFwvrrxIMG1PD5SyzjenrkqgNRqo1P8mEhdIat w9XEeD0oKOB/mTTrVNtgCbZURXDz2pPO3T9iBsyYxJzaPFeiydSCT6BKkmp+SQjuVn6d qHgk+Oedx1x+9VrrO1GF0uiU+/2BoTWvFv6BtNXJLsbXto0AecieV51hGrRHApc0W0oK AKDd5ccES9nCqkyb3sEOo9gGkt8t/JIUlhufDmDiKj42q3VSQgkOKio0j0D+QOvESTvR vWzw== 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:mime-version :content-transfer-encoding; bh=ONQAntTAACJE0IJDBpBlglBaprB61LRkMC27jTtksx0=; b=QhqKnRzMasbU3dKDb4VN7n8d+C6UlN4ALzQQ+DP+uH3zir2ymCzB55tvnVm824KmOO glrfQRmHr7Pdl3OKq9aziRiwd5q3kfXz7a3H1+Db0Lc39iRQCrDVbThqMBb823lkjhjZ ZonahqEqYfDr4j4tfnP5Im8bpPD7fy+/Uu5RL2hS7qxPBk2P5RCK6L72f86eszjw3Df3 oRfyNVsG25DTvJZ2R87snCuL6pv0SUGW66IHKnLsDch5a9IJGhIDqc+rh0gnveNI4gyZ GRQU3J4pzwBCRlOJ05Lym+qA04im8o1lI5nswG9z1cbFIX0D0ocHvuZzbV/jGs3yxeXZ WyuA== X-Gm-Message-State: APjAAAXJeZkh4DCMMS4TO4mFYbkhZGztvSfv8l8ANTRF0ifgxj+mBedh v6PvNOR7jnbS1jHZb83iRgRaKBkz+RuNqA== X-Received: by 2002:ac2:52b7:: with SMTP id r23mr39832028lfm.120.1560327132871; Wed, 12 Jun 2019 01:12:12 -0700 (PDT) Received: from localhost (c-1c3670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.28]) by smtp.gmail.com with ESMTPSA id z6sm3605218lfa.45.2019.06.12.01.12.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 01:12:12 -0700 (PDT) From: Anders Roxell To: mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH v2 1/3] drivers: media: i2c: fix warning same module names Date: Wed, 12 Jun 2019 10:12:08 +0200 Message-Id: <20190612081208.1550-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building with CONFIG_VIDEO_ADV7511 and CONFIG_DRM_I2C_ADV7511 enabled as loadable modules, we see the following warning: warning: same module names found: drivers/gpu/drm/bridge/adv7511/adv7511.ko drivers/media/i2c/adv7511.ko Rework so the names matches the config fragment. Signed-off-by: Anders Roxell --- drivers/media/i2c/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/drivers/media/i2c/Makefile b/drivers/media/i2c/Makefile index d8ad9dad495d..b71a427a89fd 100644 --- a/drivers/media/i2c/Makefile +++ b/drivers/media/i2c/Makefile @@ -35,7 +35,8 @@ obj-$(CONFIG_VIDEO_ADV748X) += adv748x/ obj-$(CONFIG_VIDEO_ADV7604) += adv7604.o obj-$(CONFIG_VIDEO_ADV7842) += adv7842.o obj-$(CONFIG_VIDEO_AD9389B) += ad9389b.o -obj-$(CONFIG_VIDEO_ADV7511) += adv7511.o +obj-$(CONFIG_VIDEO_ADV7511) += video-adv7511.o +video-adv7511-objs := adv7511.o obj-$(CONFIG_VIDEO_VPX3220) += vpx3220.o obj-$(CONFIG_VIDEO_VS6624) += vs6624.o obj-$(CONFIG_VIDEO_BT819) += bt819.o From patchwork Wed Jun 12 08:15:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 166527 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3381461ilk; Wed, 12 Jun 2019 01:15:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSq2opxr4hHl3C7D6CjXyp9efcrDbJeh+CYnQr3k5SMoMS6CTAoTuiBZz+w3Iz4BWjczjx X-Received: by 2002:a17:902:294a:: with SMTP id g68mr82107698plb.169.1560327353706; Wed, 12 Jun 2019 01:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560327353; cv=none; d=google.com; s=arc-20160816; b=mCqDS3/LGlrRcVRmvohdBS+FTcPIiTTA5HTKn44zw+VbFrbjkdp6LnG1sTl/8OXv/w Ua5Q1U0W5TF4rKglHk/yKuIC275LOfa8A4230JVqJkhCL9YAgKMiiI2j/oh94cl8P91j R9anVJpKuv4spavIqKtYH51c5pX7syU8SJeYU+AVJgW9/yik4hp8L8NPA5cQ1XqC2XLX WaDtx+g0KymqXG/obkBEJ5iHZKFUx0YYJEC+9jJjAf/cB/swW0Y1B9auqqlaea6gQIwF NQsZ9WwrVSa2oOwDheakk217y68+WCKVyw6paBgM49sO67YBOpzme4HKdFwGyM9uOy9T naVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YqGT5WThCZMYA26dhJESzrde7q0JaRkvOxBfpGhYiSg=; b=v+htMxescaw/h7ChceMsYsORNzij7uCWHMAyz0SUiScJcbmoywDEIkvei4uH3fCmr8 qGxnQem/dURSFA5E2XHHBt/eGhtYcmwiu2lKA+g/4CxrtFPopc/GPfxHzqLNK/R+zPVK Sn5BVjEYVxeiyjjPGmONCbCppmumg0Ze/RgvyBECg8eB9E+xQDDOIdQpJiGYUSrEDXdA EsqVu9Pkdpp6BM9axq7fkaT+sYBoHGG1OMj4+0tKvN7ZoGkfqKgxYWYu0DpSC0zxYOYS HXqlgsp5UPTBOyMAmtToIm87rT6gcYCdTqXkjceCFl9EOuKPHxoGuAjQx7CwGMYczQgr zPgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SBRcAI8Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u126si15319526pgu.117.2019.06.12.01.15.53; Wed, 12 Jun 2019 01:15:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SBRcAI8Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730763AbfFLIPw (ORCPT + 30 others); Wed, 12 Jun 2019 04:15:52 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46707 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730638AbfFLIPw (ORCPT ); Wed, 12 Jun 2019 04:15:52 -0400 Received: by mail-lj1-f194.google.com with SMTP id v24so9925106ljg.13 for ; Wed, 12 Jun 2019 01:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YqGT5WThCZMYA26dhJESzrde7q0JaRkvOxBfpGhYiSg=; b=SBRcAI8Z6fAG9UCaaNYTY7J5flOEau3Q95n3B+63Ji14jC7ffereQ1kDgrEzrGQVAy qqk1BBt5epoNMk9KCmMaqWO1oOQt0E33BjEbPYJHrIhKA2K9B7A1vb0zVO5kitd7grCq YGqPNL7y8c5KwAciDFdRIfHrGDrDnp2O64sT3b2VCwJJY6OAmZ2YK8WFgplqADdfvqVU HnNBzkYpCdO2iyA50XY/+wjHoa9mVNnFfXhkGjeMyqSpElXZ1YnHtAU5iaxG6uSng4ZX 7XAX2ZxseontlFnq3QrJV3yh5iPDu1eGKTuDb23rk5gfmitlfViLvxsMt+35D9fng3TB GEHw== 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:mime-version :content-transfer-encoding; bh=YqGT5WThCZMYA26dhJESzrde7q0JaRkvOxBfpGhYiSg=; b=X9wo5pZCxBd6RmHqtMHEqOuJeggL00Np02TmkXZ7NQ8/kaL9FzqxOlMRlHS26U4tvM DVD7RaJcy4t+ZLEUTydQE1D3mnmwVFvBE5jV0QgBP9CFdLnI9eNWyTMG474by2PmwauE FYVjZWDMfvg4v1tbBX8+kSzkXxpIgc/jrw2QCwseZ7VXtQMnpKRKmhDhH62PGn/mRNIp qXChMt88XS44sqB2oBImkVMFMHmED2XjK7VD/Io/AjNzwG2ksDz1bjJiktdGgJCQNND6 FfKEXhWecUBHHVUPPaw1FQfWKZoFX2Fq3FaL1yRz/tOuC9j2kFKiWO+4BqR2xGQeMq0n mf4A== X-Gm-Message-State: APjAAAW8G1eACijIH7+WOWo94GfYsoBEer7ltgKtSwFgEaePvt74Q7zt gSR3bLDK5YcglLjgjWVtTbpMFg== X-Received: by 2002:a2e:4a1a:: with SMTP id x26mr28290659lja.207.1560327349966; Wed, 12 Jun 2019 01:15:49 -0700 (PDT) Received: from localhost (c-1c3670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.28]) by smtp.gmail.com with ESMTPSA id z26sm3003303ljz.64.2019.06.12.01.15.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 01:15:49 -0700 (PDT) From: Anders Roxell To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell , Hans Verkuil Subject: [PATCH v2 2/3] drivers: media: i2c: don't enable if CONFIG_DRM_I2C_ADV7511=n Date: Wed, 12 Jun 2019 10:15:43 +0200 Message-Id: <20190612081543.2203-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_DRM_I2C_ADV7511 and CONFIG_VIDEO_ADV7511 bind to the same platform device, so whichever driver gets loaded first will be used on the device. So they shouldn't be enabled at the same time. Rework so that VIDEO_ADV7511 and VIDEO_COBALT depends on DRM_I2C_ADV7511=n or COMPILE_TEST. Sugested-by: Hans Verkuil Signed-off-by: Anders Roxell --- drivers/media/i2c/Kconfig | 1 + drivers/media/pci/cobalt/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 95d42730745c..79ce9ec6fc1b 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -511,6 +511,7 @@ config VIDEO_ADV7393 config VIDEO_ADV7511 tristate "Analog Devices ADV7511 encoder" depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API + depends on DRM_I2C_ADV7511=n || COMPILE_TEST select HDMI help Support for the Analog Devices ADV7511 video encoder. diff --git a/drivers/media/pci/cobalt/Kconfig b/drivers/media/pci/cobalt/Kconfig index 6c6c60abe9b1..e0e7df460a92 100644 --- a/drivers/media/pci/cobalt/Kconfig +++ b/drivers/media/pci/cobalt/Kconfig @@ -3,7 +3,7 @@ config VIDEO_COBALT tristate "Cisco Cobalt support" depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API depends on PCI_MSI && MTD_COMPLEX_MAPPINGS - depends on GPIOLIB || COMPILE_TEST + depends on (GPIOLIB && DRM_I2C_ADV7511=n) || COMPILE_TEST depends on SND depends on MTD select I2C_ALGOBIT