]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: greybus: move core include files to include/linux/greybus/
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 05:54:27 +0000 (07:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Aug 2019 17:02:59 +0000 (19:02 +0200)
With the goal of moving the core of the greybus code out of staging, the
include files need to be moved to include/linux/greybus.h and
include/linux/greybus/

Cc: Vaibhav Hiremath <hvaibhav.linux@gmail.com>
Cc: Johan Hovold <johan@kernel.org>
Cc: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Cc: Rui Miguel Silva <rmfrfs@gmail.com>
Cc: David Lin <dtwlin@gmail.com>
Cc: "Bryan O'Donoghue" <pure.logic@nexus-software.ie>
Cc: greybus-dev@lists.linaro.org
Cc: devel@driverdev.osuosl.org
Acked-by: Mark Greer <mgreer@animalcreek.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Alex Elder <elder@kernel.org>
Link: https://lore.kernel.org/r/20190825055429.18547-8-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
53 files changed:
drivers/staging/greybus/arche-platform.c
drivers/staging/greybus/audio_apbridgea.c
drivers/staging/greybus/audio_codec.h
drivers/staging/greybus/audio_gb.c
drivers/staging/greybus/authentication.c
drivers/staging/greybus/bootrom.c
drivers/staging/greybus/bundle.c
drivers/staging/greybus/camera.c
drivers/staging/greybus/connection.c
drivers/staging/greybus/control.c
drivers/staging/greybus/core.c
drivers/staging/greybus/debugfs.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/firmware.h
drivers/staging/greybus/fw-core.c
drivers/staging/greybus/fw-download.c
drivers/staging/greybus/fw-management.c
drivers/staging/greybus/gbphy.c
drivers/staging/greybus/gpio.c
drivers/staging/greybus/hd.c
drivers/staging/greybus/hid.c
drivers/staging/greybus/i2c.c
drivers/staging/greybus/interface.c
drivers/staging/greybus/light.c
drivers/staging/greybus/log.c
drivers/staging/greybus/loopback.c
drivers/staging/greybus/manifest.c
drivers/staging/greybus/module.c
drivers/staging/greybus/operation.c
drivers/staging/greybus/power_supply.c
drivers/staging/greybus/pwm.c
drivers/staging/greybus/raw.c
drivers/staging/greybus/sdio.c
drivers/staging/greybus/spi.c
drivers/staging/greybus/spilib.c
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc_watchdog.c
drivers/staging/greybus/uart.c
drivers/staging/greybus/usb.c
drivers/staging/greybus/vibrator.c
include/linux/greybus.h [moved from drivers/staging/greybus/greybus.h with 89% similarity]
include/linux/greybus/bundle.h [moved from drivers/staging/greybus/bundle.h with 100% similarity]
include/linux/greybus/connection.h [moved from drivers/staging/greybus/connection.h with 100% similarity]
include/linux/greybus/control.h [moved from drivers/staging/greybus/control.h with 100% similarity]
include/linux/greybus/greybus_id.h [moved from drivers/staging/greybus/greybus_id.h with 100% similarity]
include/linux/greybus/greybus_manifest.h [moved from drivers/staging/greybus/greybus_manifest.h with 100% similarity]
include/linux/greybus/greybus_protocols.h [moved from drivers/staging/greybus/greybus_protocols.h with 100% similarity]
include/linux/greybus/hd.h [moved from drivers/staging/greybus/hd.h with 100% similarity]
include/linux/greybus/interface.h [moved from drivers/staging/greybus/interface.h with 100% similarity]
include/linux/greybus/manifest.h [moved from drivers/staging/greybus/manifest.h with 100% similarity]
include/linux/greybus/module.h [moved from drivers/staging/greybus/module.h with 100% similarity]
include/linux/greybus/operation.h [moved from drivers/staging/greybus/operation.h with 100% similarity]
include/linux/greybus/svc.h [moved from drivers/staging/greybus/svc.h with 100% similarity]

index 6eb842040c22c9104cd7c4a901efed1d476888de..eebf0deb39f50d2315fa118d44edaea94f12e8df 100644 (file)
@@ -19,8 +19,8 @@
 #include <linux/irq.h>
 #include <linux/suspend.h>
 #include <linux/time.h>
+#include <linux/greybus.h>
 #include "arche_platform.h"
-#include "greybus.h"
 
 #if IS_ENABLED(CONFIG_USB_HSIC_USB3613)
 #include <linux/usb/usb3613.h>
index 7ebb1bde5cb776a8becc582152325736982fbebe..26117e390debdf6d1c375156e865b5ffffd1777c 100644 (file)
@@ -5,8 +5,7 @@
  * Copyright 2015-2016 Google Inc.
  */
 
-#include "greybus.h"
-#include "greybus_protocols.h"
+#include <linux/greybus.h>
 #include "audio_apbridgea.h"
 #include "audio_codec.h"
 
index 9ba09ea9c2fc51738561a1d76e1e51bd47a52e94..cb5d271da1a5431ef87afcb53a38054703cd0939 100644 (file)
@@ -8,12 +8,10 @@
 #ifndef __LINUX_GBAUDIO_CODEC_H
 #define __LINUX_GBAUDIO_CODEC_H
 
+#include <linux/greybus.h>
 #include <sound/soc.h>
 #include <sound/jack.h>
 
-#include "greybus.h"
-#include "greybus_protocols.h"
-
 #define NAME_SIZE      32
 #define MAX_DAIS       2       /* APB1, APB2 */
 
index 8894f1c87d481bee77e8d0b94a65fd302c4e3874..9d8994fdb41a260f2d97100e60b082ff05843297 100644 (file)
@@ -5,9 +5,7 @@
  * Copyright 2015-2016 Google Inc.
  */
 
-#include "greybus.h"
-#include "greybus_protocols.h"
-#include "operation.h"
+#include <linux/greybus.h>
 #include "audio_codec.h"
 
 /* TODO: Split into separate calls */
index a5d7c53df987b4a3bba1c8c6c47c49f57c9b30c8..297e69f011c7e1386c736df84f1b302bb3d55d7c 100644 (file)
@@ -6,8 +6,7 @@
  * Copyright 2016 Linaro Ltd.
  */
 
-#include "greybus.h"
-
+#include <linux/greybus.h>
 #include <linux/cdev.h>
 #include <linux/fs.h>
 #include <linux/ioctl.h>
index 402e6360834fb413c8a1a541ebf44f62ca035621..a8efb86de14006105943160f70184e78b2fcbea4 100644 (file)
@@ -10,8 +10,8 @@
 #include <linux/jiffies.h>
 #include <linux/mutex.h>
 #include <linux/workqueue.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "firmware.h"
 
 /* Timeout, in jiffies, within which the next request must be received */
index 3f702db9e0986bb1ca390ccf187b021a8b3d6bd2..84660729538b95cb8624080490025a68cba4fa54 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright 2014-2015 Linaro Ltd.
  */
 
-#include "greybus.h"
+#include <linux/greybus.h>
 #include "greybus_trace.h"
 
 static ssize_t bundle_class_show(struct device *dev,
index 615c8e7fd51e98a74638d15a7090fb72df14fdd5..b570e13394ac3b14cf1c7f5750f3fc25919f35b7 100644 (file)
@@ -14,9 +14,9 @@
 #include <linux/string.h>
 #include <linux/uaccess.h>
 #include <linux/vmalloc.h>
+#include <linux/greybus.h>
 
 #include "gb-camera.h"
-#include "greybus.h"
 #include "greybus_protocols.h"
 
 enum gb_camera_debugs_buffer_id {
index eda964208cce183acc14aed87be83f99bfa58fc3..fc8f57f97ce62d719515f63f81e4c55f4cbd089a 100644 (file)
@@ -7,8 +7,8 @@
  */
 
 #include <linux/workqueue.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "greybus_trace.h"
 
 #define GB_CONNECTION_CPORT_QUIESCE_TIMEOUT    1000
index a9e8b6036cac9eb6c3636cf14f4a96f486e2528b..359a2584197397dc5351fa0f01b1c3ac5a79444f 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include "greybus.h"
+#include <linux/greybus.h>
 
 /* Highest control-protocol version supported */
 #define GB_CONTROL_VERSION_MAJOR       0
index d6b0d49130c0e93f73a0a7ad9d2ad468aa32bd02..e546c6431877fce0ce71967ebe3b222de6d6f972 100644 (file)
@@ -9,7 +9,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #define CREATE_TRACE_POINTS
-#include "greybus.h"
+#include <linux/greybus.h>
 #include "greybus_trace.h"
 
 #define GB_BUNDLE_AUTOSUSPEND_MS       3000
index 56e20c30feb5d2342176bba96c38af510cd6bc4a..e102d7badb9d90f0581067f334d64c986d72e54f 100644 (file)
@@ -7,8 +7,7 @@
  */
 
 #include <linux/debugfs.h>
-
-#include "greybus.h"
+#include <linux/greybus.h>
 
 static struct dentry *gb_debug_root;
 
index be6af18cec31584547fc0a19a49e3d2d5ceab83a..366716f11b1a5087a6263fe5f0d9d08873839848 100644 (file)
 #include <linux/kfifo.h>
 #include <linux/debugfs.h>
 #include <linux/list.h>
+#include <linux/greybus.h>
 #include <asm/unaligned.h>
 
 #include "arpc.h"
-#include "greybus.h"
 #include "greybus_trace.h"
-#include "connection.h"
 
 
 /* Default timeout for USB vendor requests. */
index 72dfabfa4704900fe326d01a70bcff688a6ba0b8..5d2564462ffcdb98b02fdbbce27e4d09199bfb88 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef __FIRMWARE_H
 #define __FIRMWARE_H
 
-#include "greybus.h"
+#include <linux/greybus.h>
 
 #define FW_NAME_PREFIX "gmp_"
 
index 388866d92f5bcd032a82c936df760f5ff439ba18..57bebf24636b4678037ef367f383205f9e32f0b1 100644 (file)
@@ -8,8 +8,8 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/firmware.h>
+#include <linux/greybus.h>
 #include "firmware.h"
-#include "greybus.h"
 #include "spilib.h"
 
 struct gb_fw_core {
index d3b7cccbc10d51a6991a00d73a1ad62729bd7a38..543692c567f926a89fb88e958305974c3911469f 100644 (file)
@@ -10,8 +10,8 @@
 #include <linux/jiffies.h>
 #include <linux/mutex.h>
 #include <linux/workqueue.h>
+#include <linux/greybus.h>
 #include "firmware.h"
-#include "greybus.h"
 
 /* Estimated minimum buffer size, actual size can be smaller than this */
 #define MIN_FETCH_SIZE         512
index 71aec14f8181e3cbb3c35b0dcef38c6973883df4..687c6405c65b6a636eba5c5e8dbdc3331ec6d869 100644 (file)
 #include <linux/idr.h>
 #include <linux/ioctl.h>
 #include <linux/uaccess.h>
+#include <linux/greybus.h>
 
 #include "firmware.h"
 #include "greybus_firmware.h"
-#include "greybus.h"
 
 #define FW_MGMT_TIMEOUT_MS             1000
 
index 6cb85c3d35726ee3da09666aff96f3ef8800480e..9fc5c47be9bdc1d52484a63ee84c8a042151e05b 100644 (file)
@@ -13,8 +13,8 @@
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/device.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "gbphy.h"
 
 #define GB_GBPHY_AUTOSUSPEND_MS        3000
index 3151004d26fbaea3fe1cfdcc789158ae88d66281..1ff34abd5692eba26ff7de533f614de743cee581 100644 (file)
@@ -13,8 +13,8 @@
 #include <linux/irqdomain.h>
 #include <linux/gpio/driver.h>
 #include <linux/mutex.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "gbphy.h"
 
 struct gb_gpio_line {
index e2b9ab5f6ec2f1a508b59e2eba5217c5386bb12d..72b21bf2d7d36a85cbfd05d261d760fa37f16205 100644 (file)
@@ -8,8 +8,8 @@
 
 #include <linux/kernel.h>
 #include <linux/slab.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "greybus_trace.h"
 
 EXPORT_TRACEPOINT_SYMBOL_GPL(gb_hd_create);
index 8ab810bf571669bfe1af1a0839a942268be087fa..04bfd91105025d213593680f1e91f1f7edf06b9b 100644 (file)
@@ -12,8 +12,7 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/slab.h>
-
-#include "greybus.h"
+#include <linux/greybus.h>
 
 /* Greybus HID device's structure */
 struct gb_hid {
index b2522043a1a4e2898f330fc7bc6ddf75678e1eac..ab06fc3b9e7e4bf8ff0d9823f9f076c1d49c60c1 100644 (file)
@@ -10,8 +10,8 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "gbphy.h"
 
 struct gb_i2c_device {
index d7b5b89a2f406c87a0def2cc676f7c302b1e4c76..67dbe6fda9a133b43baf7feda84df58f4cc5364d 100644 (file)
@@ -7,8 +7,8 @@
  */
 
 #include <linux/delay.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "greybus_trace.h"
 
 #define GB_INTERFACE_MODE_SWITCH_TIMEOUT       2000
index 010ae1e9c7fbfabee6b26ceb4fe412e9b20b436f..b3b1b253d1128295bfd802f1febfda6cec623252 100644 (file)
 #include <linux/led-class-flash.h>
 #include <linux/module.h>
 #include <linux/slab.h>
+#include <linux/greybus.h>
 #include <media/v4l2-flash-led-class.h>
 
-#include "greybus.h"
-#include "greybus_protocols.h"
-
 #define NAMES_MAX      32
 
 struct gb_channel {
index 4f1f161ff11c41ca031aeb022133bd06366d9cc2..971f36dccac6cfb15128ce04dc257ec6ebdf2086 100644 (file)
@@ -9,8 +9,7 @@
 #include <linux/slab.h>
 #include <linux/sizes.h>
 #include <linux/uaccess.h>
-
-#include "greybus.h"
+#include <linux/greybus.h>
 
 struct gb_log {
        struct gb_connection *connection;
index b0ab0eed5c1815a5f29115f980a5bb27d9ba89ca..583d9708a191c54ff64d3c106ee126cc1852329c 100644 (file)
 #include <linux/workqueue.h>
 #include <linux/atomic.h>
 #include <linux/pm_runtime.h>
-
+#include <linux/greybus.h>
 #include <asm/div64.h>
 
-#include "greybus.h"
-#include "connection.h"
-
 #define NSEC_PER_DAY 86400000000000ULL
 
 struct gb_loopback_stats {
index 4ebbba52b07caef54bc485d6795052da86fb1da4..dd7040697bde9fcdbb17527b2759a16d4e94d651 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright 2014-2015 Linaro Ltd.
  */
 
-#include "greybus.h"
+#include <linux/greybus.h>
 
 static const char *get_descriptor_type_string(u8 type)
 {
index b251a53d0e8ee6617a78e86367302b4c1ff07443..36f77f9e1d7439eaf9c16e871a3fd28a6a218bf5 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright 2016 Linaro Ltd.
  */
 
-#include "greybus.h"
+#include <linux/greybus.h>
 #include "greybus_trace.h"
 
 static ssize_t eject_store(struct device *dev,
index fe268f7b63ed76e01b3b62bb7601ed0a352c74f4..8459e9bc07498988ab46b5fdf411bcd679299ca4 100644 (file)
@@ -12,8 +12,8 @@
 #include <linux/sched.h>
 #include <linux/wait.h>
 #include <linux/workqueue.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "greybus_trace.h"
 
 static struct kmem_cache *gb_operation_cache;
index 34b40a409ea3e932c1c3a53b40d2f3010f0e2728..ec96f28887f99cef395054d0d9d63d9c30cb5ccc 100644 (file)
@@ -10,8 +10,7 @@
 #include <linux/module.h>
 #include <linux/power_supply.h>
 #include <linux/slab.h>
-
-#include "greybus.h"
+#include <linux/greybus.h>
 
 #define PROP_MAX 32
 
index 4a6d394b6c448a994ccc4c162ddd81f8974a1dec..891a6a672378a961b1bf1de07c343545e5e060fa 100644 (file)
@@ -10,8 +10,8 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/pwm.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "gbphy.h"
 
 struct gb_pwm_chip {
index 838acbe84ca01a52aceb5afd17057656d21a9fff..64a17dfe3b6ee9d92873f7f9a00f95eccbc2bf85 100644 (file)
@@ -13,8 +13,7 @@
 #include <linux/fs.h>
 #include <linux/idr.h>
 #include <linux/uaccess.h>
-
-#include "greybus.h"
+#include <linux/greybus.h>
 
 struct gb_raw {
        struct gb_connection *connection;
index a097a8916b3bbfa5891cc34cd700e7109a5deb69..68c5718be827bdec139fe1707339d469d8059b4b 100644 (file)
@@ -12,8 +12,8 @@
 #include <linux/mmc/mmc.h>
 #include <linux/scatterlist.h>
 #include <linux/workqueue.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "gbphy.h"
 
 struct gb_sdio_host {
index 47d896992b3519d2b5d1c26c25d5fa44ebff8bb2..68e8d272db6dc8b22cfa66e6b28fec57a0ebf5a3 100644 (file)
@@ -7,8 +7,8 @@
  */
 
 #include <linux/module.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "gbphy.h"
 #include "spilib.h"
 
index 2e07c6b413345223d5349bab74f4b87a11e25454..fc27c52de74a2db2867657cdf37ace42f4b2dfbe 100644 (file)
@@ -10,9 +10,9 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
+#include <linux/greybus.h>
 #include <linux/spi/spi.h>
 
-#include "greybus.h"
 #include "spilib.h"
 
 struct gb_spilib {
index 05bc45287b87658b8c5c23c588204fd083aea997..ce7740ef449babaf0f7bfd1afd2021cb6c7a7aec 100644 (file)
@@ -8,8 +8,7 @@
 
 #include <linux/debugfs.h>
 #include <linux/workqueue.h>
-
-#include "greybus.h"
+#include <linux/greybus.h>
 
 #define SVC_INTF_EJECT_TIMEOUT         9000
 #define SVC_INTF_ACTIVATE_TIMEOUT      6000
index 7868ad8211c5df7694c46377097b0fc8ff6276d1..b6b1682c19c455a87810e4c6477275430a8c25fa 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/delay.h>
 #include <linux/suspend.h>
 #include <linux/workqueue.h>
-#include "greybus.h"
+#include <linux/greybus.h>
 
 #define SVC_WATCHDOG_PERIOD    (2 * HZ)
 
index b3bffe91ae99b238ca007c0c499d6c1fb7dadd60..55c51143bb0940998b19396a56b39cba3bbd7447 100644 (file)
@@ -28,8 +28,8 @@
 #include <linux/kfifo.h>
 #include <linux/workqueue.h>
 #include <linux/completion.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "gbphy.h"
 
 #define GB_NUM_MINORS  16      /* 16 is more than enough */
index 1c246c73a085edd94d0d988aee4a5cbddcfbbd88..8e9d9d59a357385aa67e8fcd1ccc5d595eb69167 100644 (file)
@@ -10,8 +10,8 @@
 #include <linux/slab.h>
 #include <linux/usb.h>
 #include <linux/usb/hcd.h>
+#include <linux/greybus.h>
 
-#include "greybus.h"
 #include "gbphy.h"
 
 /* Greybus USB request types */
index 3e5dedeacd5c4b33f60b7dee7aa416d44133a1eb..0e2b188e5ca3f590c27cc743a627c1cc49ddb9e9 100644 (file)
@@ -13,8 +13,7 @@
 #include <linux/kdev_t.h>
 #include <linux/idr.h>
 #include <linux/pm_runtime.h>
-
-#include "greybus.h"
+#include <linux/greybus.h>
 
 struct gb_vibrator_device {
        struct gb_connection    *connection;
similarity index 89%
rename from drivers/staging/greybus/greybus.h
rename to include/linux/greybus.h
index f0488ffff93e04cbada5b901676c447a518a9859..18c0fb958b74022663617698258e5ac29c349836 100644 (file)
 #include <linux/pm_runtime.h>
 #include <linux/idr.h>
 
-#include "greybus_id.h"
-#include "greybus_manifest.h"
-#include "greybus_protocols.h"
-#include "manifest.h"
-#include "hd.h"
-#include "svc.h"
-#include "control.h"
-#include "module.h"
-#include "interface.h"
-#include "bundle.h"
-#include "connection.h"
-#include "operation.h"
+#include <linux/greybus/greybus_id.h>
+#include <linux/greybus/greybus_manifest.h>
+#include <linux/greybus/greybus_protocols.h>
+#include <linux/greybus/manifest.h>
+#include <linux/greybus/hd.h>
+#include <linux/greybus/svc.h>
+#include <linux/greybus/control.h>
+#include <linux/greybus/module.h>
+#include <linux/greybus/interface.h>
+#include <linux/greybus/bundle.h>
+#include <linux/greybus/connection.h>
+#include <linux/greybus/operation.h>
 
 /* Matches up with the Greybus Protocol specification document */
 #define GREYBUS_VERSION_MAJOR  0x00