Message ID | 20231214184050.1272848-5-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8765336dys; Thu, 14 Dec 2023 10:41:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFj1yisEoN1kvvvqqiTYX3W1eXuM766VBXIiZrpdtGfCD43BhlQ93kNZtupKSpDn1uSzhf6 X-Received: by 2002:a17:90a:1157:b0:286:2e71:1392 with SMTP id d23-20020a17090a115700b002862e711392mr4440283pje.9.1702579303059; Thu, 14 Dec 2023 10:41:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702579303; cv=none; d=google.com; s=arc-20160816; b=iSYBh9ktqmpY4wQhOSwKBLmMkNa4RVfV05wH1W4oyZcVGnK72BQUL7o6CvHbg0dh0p G1u3i3VXxxxVz4TnSbhK+Lp4df1UkRYYeL6b7sJ1UceJ94+BjNwrzMvFt8na/knQyd8i ESxsnNIRfrdMenOjdYHLlNV1wl8x9riQJhixtR9D4aTUsgK55cww2R2oJ0BwdcZ4yL0o NqroDSmNxk6teaLi4ixYEC87MZqoPjfEk74P4GHTCJM2ShG04w6hX6kEcQdEAy8iIffN OKQfV3LJssTYBzlFVXxBlXnxw9ZvFLjzRGjOqIvEFmdQem4B0ZjAwqV6zV+JvxNUQq8b vkQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vgDR05KaWj1Aud+Ufcq6uerJweYR5z3DPJcEvALjjCI=; fh=gYRgAXbu/FHO/Cqj/TKspqZnXUXsvaSPLTSdapZ7Ru0=; b=i5xHHqN/MRnoiXkFfbFfm2xPBRJan0GbcW5Ud6vt1GUcQb2Ol2wzL4Je4p8ks8w3Un /84nZ7EcJ08cjzWI6wBdXBmS0K340+8DC8LJXpwgF9+KayVIIIN8kqpZqtdBUXxjCJTm I6O/2RiTl9VTM1XMz42nK7b3+NoT9RIgOlySjEdOD6s3U+MF4riZUj4G24HjQy9tOgUn 31teHxiLr3VALlnl18jGn8WX5vb6SlT+ere/m/YglPuzCPaSHStZJJBZlBAtCy+0J0BR AOgheYPVkd+H9Rhp+zJeZxP7BBupGzpz4vyEAtGOD08db41QynfyO7FYundiKoA+88W+ 4wPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c8VMBTW6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g4-20020a17090a9b8400b00286b48a6226si12938252pjp.89.2023.12.14.10.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 10:41:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c8VMBTW6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A98A481972D4; Thu, 14 Dec 2023 10:41:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573180AbjLNSlV (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Thu, 14 Dec 2023 13:41:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573139AbjLNSlQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 14 Dec 2023 13:41:16 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FA9912B; Thu, 14 Dec 2023 10:41:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702579282; x=1734115282; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ejqGTJqRJV94y5/KtwKcYw2iSBE0q2SaQ5pb83PDPgA=; b=c8VMBTW6kAcPZcH66f2rP+cogRfWLGxZtPDNkDM1TFpKWwLfNVNiduF5 xIhH3XR8VIPjA5qwJlUfrmoLllHLtQE1/JItWfmj4bpue8K+UMFdQZPwk IRVAowZjK1oE4O7LMI3/8LTPRE8j+sCIbBGER9ZyUevF5YAp7P9bxsYM2 hlcmGd9n2C8YI7QnqQoboD621GsUq9xJnhk25z73SQiLmaWI8NHX7MId0 6gn/sa3mmNN0rYYoN0MsjbgsDPEkKPr4ejyI/kyKIixr/+57I7oxK6xeO Rib2NrnNe6FYzakhFSxFWoq5o3OjHj5/b3rGwz3NMr55pbqNYNQHxKTAz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="461631064" X-IronPort-AV: E=Sophos;i="6.04,276,1695711600"; d="scan'208";a="461631064" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 10:40:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="803395261" X-IronPort-AV: E=Sophos;i="6.04,276,1695711600"; d="scan'208";a="803395261" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 14 Dec 2023 10:40:54 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 4511D46D; Thu, 14 Dec 2023 20:40:53 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Patrick Rudolph <patrick.rudolph@9elements.com>, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org> Subject: [PATCH v1 4/4] leds: max5970: Add missing headers Date: Thu, 14 Dec 2023 20:40:11 +0200 Message-ID: <20231214184050.1272848-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20231214184050.1272848-1-andriy.shevchenko@linux.intel.com> References: <20231214184050.1272848-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Dec 2023 10:41:40 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785283795403604565 X-GMAIL-MSGID: 1785283795403604565 |
Series | leds: max5970: Allow to use on non-OF platforms | |
Commit Message
Andy Shevchenko
Dec. 14, 2023, 6:40 p.m. UTC
Don't inherit headers "by chance" from others.
Include the needed ones explicitly.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/leds/leds-max5970.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/leds/leds-max5970.c b/drivers/leds/leds-max5970.c index 60db3c28d7d9..56a584311581 100644 --- a/drivers/leds/leds-max5970.c +++ b/drivers/leds/leds-max5970.c @@ -7,9 +7,13 @@ * Author: Patrick Rudolph <patrick.rudolph@9elements.com> */ +#include <linux/bits.h> +#include <linux/container_of.h> +#include <linux/device.h> #include <linux/leds.h> #include <linux/mfd/max5970.h> #include <linux/mod_devicetable.h> +#include <linux/module.h> #include <linux/platform_device.h> #include <linux/property.h> #include <linux/regmap.h>