mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Let's use the pci/platform-specialized functions for mapping a resource, and pass the mapped address to intel_spi_probe. Benefits are: - No separate call needed for getting the resource, and no access to struct pci_dev internals (pdev->resource[]). - More user-friendly output in /proc/iomem. In my case: before 80704000-80704fff : 0000:00:1f.5 80704000-80704fff : 0000:00:1f.5 0000:00:1f.5 after 80704000-80704fff : 0000:00:1f.5 80704000-80704fff : spi_intel_pci Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://patch.msgid.link/2585fa05-60c4-48c4-a838-e87014665ae2@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
19 lines
479 B
C
19 lines
479 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Intel PCH/PCU SPI flash driver.
|
|
*
|
|
* Copyright (C) 2016 - 2022, Intel Corporation
|
|
* Author: Mika Westerberg <mika.westerberg@linux.intel.com>
|
|
*/
|
|
|
|
#ifndef SPI_INTEL_H
|
|
#define SPI_INTEL_H
|
|
|
|
#include <linux/platform_data/x86/spi-intel.h>
|
|
|
|
extern const struct attribute_group *intel_spi_groups[];
|
|
|
|
int intel_spi_probe(struct device *dev, void __iomem *base,
|
|
const struct intel_spi_boardinfo *info);
|
|
|
|
#endif /* SPI_INTEL_H */
|