Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp43942imm; Thu, 20 Sep 2018 13:49:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZPCG21SJoU4G+NZwiCaJFKtNV6mLCjmvmweW28QHo6H2RDb5Gt5Ru3HCtsbP6fGV3KxpIm X-Received: by 2002:a17:902:d685:: with SMTP id v5-v6mr5036083ply.42.1537476553993; Thu, 20 Sep 2018 13:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537476553; cv=none; d=google.com; s=arc-20160816; b=LwOuEQRdhJuVvSC1pGnOuUGUp/2i3k+nxSH40Jo31eRrGGJ2VbCzJLqwRIF6yCLo+L HMTBcUgGug5E8uaJ5hPuvJ1E1tYqARPBYpKpsKkUsRm87ehF6fi9S+nxryVq8CUguxYL pabWqzWYTavDQFNhjWMfUALsTOzWOjmKay66VQFMFIB4T7ueYWB6imvcDHgoH8cA73hr TBw5g+UNKGubxsO+v5SGpz+aMmh052x44RykovmXvE2DQw8A8hd8GInOAu1UNCa/n4B5 a0TgY326ed09lfK3xqGysTKddo70/2S3EyB8PZTRzmapAfHLg90wX/5YKTrEfsVjK/fo 8rlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=d3SsFeK73BDBaVaH0gbzC0wuehUzjUhBg5plqI7ONe0=; b=NLRQ9nXyuxPLalQrOBJFHZ/+qmADudc2pErLnltPqUOa6zpEGsSipW0jVq2TR7eU2h 3qYbAvwObMJSKV01JHlDuLn6TrBPgSa0Ea6GdXZKkVtaSNue7tNAj6zP34DND9ZxALb7 XKUP8DdlkJ96FhtcwrwfE5Z4DUQWdtD7wszJPIjmDy4YP6k93RoyksHSVX7spTBeWwKP bkUbho8NuGKG28ltCgwY+4nJxndjrp9i5SLCUn3SiQpZQw1U/cAnYdGLyXqZeq/Lb3YC vuIbNzdXObUmhSPG48zSvIos1M5s9VZUAY5NQNCDp/P1ZhbfsjEwhTPtZ3v+rbrx38Ok 8Qvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jhy6MNRE; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9-v6si2713162pgh.516.2018.09.20.13.48.52; Thu, 20 Sep 2018 13:49:13 -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=@gmail.com header.s=20161025 header.b=Jhy6MNRE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388509AbeIUCbS (ORCPT + 99 others); Thu, 20 Sep 2018 22:31:18 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:36425 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbeIUCbR (ORCPT ); Thu, 20 Sep 2018 22:31:17 -0400 Received: by mail-lf1-f65.google.com with SMTP id v17-v6so5695336lfe.3; Thu, 20 Sep 2018 13:45:57 -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:in-reply-to:references; bh=d3SsFeK73BDBaVaH0gbzC0wuehUzjUhBg5plqI7ONe0=; b=Jhy6MNREd0B2FfU8q2jRLiVWWEL400/s5E6htFqTPXys4GdzlDNcA6DQ9BXB6Xr05N ALosh9hOO7rbL6ORvV7x5qT+HK2Ypn+/ZZjWpy28mZaOMsn4fiVtiSFL0BLeuFu+XExD qbDFI5nyjV5MgAuuWS9CQs5GCDO96OyeipKr3C9aHqa3xRs51/BSVplOg1YM+x03cPiC dP8sXOYe8gkbu85/K3Jf3UWBi11Gkox8yFchmUU+tpjb+4NB2iPFj1V8r3gXXiy3wgFR OJ0hIIp2KeWOmi6oqg9RjUvjoygSZEa7cs51Kazqf6SXx8BzjuZTZWOLu4ZwwIhd9rZu lM5A== 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:in-reply-to :references; bh=d3SsFeK73BDBaVaH0gbzC0wuehUzjUhBg5plqI7ONe0=; b=MWfeeb6k30I5udOj3UCaFoGkmJYkcFRazsRL2A0lhgQly4stVTGyl5/ikEGgP/CeHv M+hOiTehe06Fe1tKiDu6lmuVqa796WN0MOzBqdJEg39yg1Dy9dDdDJ+dAWnfg8hyeXjD EYQoJS9UFUJm4zMB/B3HoHFMuumMB7O+PCbvfwvTUtjpq5ZrfO+MbgHLMtZUCto5uld0 Dgqe7XM/DjZDZ0AC2nOGDNZSgBnHY4G3fz8nOzakM78QpfSq/tRMCCIpeh0+6DwFVinW hpNnsQsjLLtoq8GsGkBM8XwJqaXTKlXU4SDhLg726ZcEg/G6eKJc4NA5f0sDcUZG4pwg Zbpw== X-Gm-Message-State: APzg51CldqF5DbtgCeWSSNA9C+bZZWfOxZn2Dt1F+lLK5ZLMHkrGeJqA plPqqJn9IlPWV6t8AyOHLGc= X-Received: by 2002:a19:6f0a:: with SMTP id k10-v6mr13969438lfc.143.1537476357072; Thu, 20 Sep 2018 13:45:57 -0700 (PDT) Received: from piling.lan (80-71-134-83.u.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id r23-v6sm4470355ljc.15.2018.09.20.13.45.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 13:45:56 -0700 (PDT) From: Ricardo Ribalda Delgado To: Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Verkuil , Laurent Pinchart Cc: Ricardo Ribalda Delgado Subject: [[PATCH v3] 4/6] [media] ad5820: Add support for acpi autoload Date: Thu, 20 Sep 2018 22:45:38 +0200 Message-Id: <20180920204540.28832-4-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180920204540.28832-1-ricardo.ribalda@gmail.com> References: <20180920204540.28832-1-ricardo.ribalda@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow module autoloading of ad5820 ACPI devices. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/ad5820.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index e461d36201a4..5d1185e7f78d 100644 --- a/drivers/media/i2c/ad5820.c +++ b/drivers/media/i2c/ad5820.c @@ -22,6 +22,7 @@ * General Public License for more details. */ +#include #include #include #include @@ -380,6 +381,15 @@ static const struct of_device_id ad5820_of_table[] = { MODULE_DEVICE_TABLE(of, ad5820_of_table); #endif +#ifdef CONFIG_ACPI +static const struct acpi_device_id ad5820_acpi_ids[] = { + { "AD5820" }, + { } +}; + +MODULE_DEVICE_TABLE(acpi, ad5820_acpi_ids); +#endif + static SIMPLE_DEV_PM_OPS(ad5820_pm, ad5820_suspend, ad5820_resume); static struct i2c_driver ad5820_i2c_driver = { @@ -387,6 +397,7 @@ static struct i2c_driver ad5820_i2c_driver = { .name = AD5820_NAME, .pm = &ad5820_pm, .of_match_table = of_match_ptr(ad5820_of_table), + .acpi_match_table = ACPI_PTR(ad5820_acpi_ids), }, .probe = ad5820_probe, .remove = ad5820_remove, -- 2.18.0