From f568d102e1abfa419e300e623a0ab227af7d01a7 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Thu, 24 Dec 2020 19:49:55 -0500 Subject: [PATCH] Migrate layout to the destination layout First I imported the commits from v3.6.6 with: PKG=host git init $PKG cd $PKG git remote add origin https://github.com/google/periph git fetch origin git filter-repo \ --path AUTHORS \ --path CONTRIBUTING.md \ --path CONTRIBUTORS \ --path LICENSE \ --path README.md \ --path $PKG --path experimental/$PKG $@ git remote add origin git@github.com:periph/$PKG git fetch origin # Use the occasion to rename from master to main since we are starting from # scratch. git branch -m main git push origin main Then I fixed the layout to get rid of experimental with: git rm experimental/host/README.md git mv experimental/host/* . mkdir hostreg git mv *.go hostreg git mv host/* . The import paths will be fixed in a follow up. --- {host/allwinner => allwinner}/a20.go | 0 {host/allwinner => allwinner}/a64.go | 0 {host/allwinner => allwinner}/allwinner_arm.go | 0 {host/allwinner => allwinner}/allwinner_arm64.go | 0 {host/allwinner => allwinner}/allwinner_other.go | 0 .../allwinnersmoketest/allwinnersmoketest.go | 0 .../allwinnersmoketest/benchmark.go | 0 .../allwinnersmoketest/benchmark_fast_gpio_support.go | 0 .../allwinnersmoketest/benchmark_gpio_support.go | 0 .../allwinnersmoketest/benchmark_gpio_support_test.go | 0 {host/allwinner => allwinner}/clock.go | 0 {host/allwinner => allwinner}/detect.go | 0 {host/allwinner => allwinner}/dma.go | 0 {host/allwinner => allwinner}/doc.go | 0 {host/allwinner => allwinner}/gpio.go | 0 {host/allwinner => allwinner}/gpio_pl.go | 0 {host/allwinner => allwinner}/pwm.go | 0 {host/allwinner => allwinner}/r8.go | 0 {host/allwinner => allwinner}/spi.go | 0 {host/allwinner => allwinner}/timer.go | 0 {host/am335x => am335x}/am335x.go | 0 {host/am335x => am335x}/am335x_arm.go | 0 {host/am335x => am335x}/am335x_other.go | 0 {host/am335x => am335x}/doc.go | 0 {host/bcm283x => bcm283x}/bcm283x_arm.go | 0 {host/bcm283x => bcm283x}/bcm283x_arm64.go | 0 {host/bcm283x => bcm283x}/bcm283x_other.go | 0 {host/bcm283x => bcm283x}/bcm283x_test.go | 0 .../bcm283xsmoketest/bcm283xsmoketest.go | 0 .../bcm283x => bcm283x}/bcm283xsmoketest/benchmark.go | 0 .../bcm283xsmoketest/benchmark_fast_gpio_support.go | 0 .../bcm283xsmoketest/benchmark_gpio_support.go | 0 .../bcm283xsmoketest/benchmark_gpio_support_test.go | 0 {host/bcm283x => bcm283x}/clock.go | 0 {host/bcm283x => bcm283x}/clock_test.go | 0 {host/bcm283x => bcm283x}/dma.go | 0 {host/bcm283x => bcm283x}/dma_test.go | 0 {host/bcm283x => bcm283x}/doc.go | 0 {host/bcm283x => bcm283x}/example_test.go | 0 {host/bcm283x => bcm283x}/gpio.go | 0 {host/bcm283x => bcm283x}/gpio_test.go | 0 {host/bcm283x => bcm283x}/pcm.go | 0 {host/bcm283x => bcm283x}/pwm.go | 0 {host/bcm283x => bcm283x}/pwm_test.go | 0 {host/bcm283x => bcm283x}/streams.go | 0 {host/bcm283x => bcm283x}/streams_test.go | 0 {host/bcm283x => bcm283x}/timer.go | 0 {host/bcm283x => bcm283x}/timer_test.go | 0 {host/beagle => beagle}/beagle.go | 0 {host/beagle => beagle}/beagle_arm.go | 0 {host/beagle => beagle}/beagle_other.go | 0 {host/beagle => beagle}/black/black.go | 0 {host/beagle => beagle}/black/black_arm.go | 0 {host/beagle => beagle}/black/black_other.go | 0 {host/beagle => beagle}/bone/bone.go | 0 {host/beagle => beagle}/bone/bone_arm.go | 0 {host/beagle => beagle}/bone/bone_other.go | 0 {host/beagle => beagle}/doc.go | 0 {host/beagle => beagle}/green/green.go | 0 {host/beagle => beagle}/green/green_arm.go | 0 {host/beagle => beagle}/green/green_other.go | 0 {host/chip => chip}/chip.go | 0 {host/chip => chip}/chip_arm.go | 0 {host/chip => chip}/chip_other.go | 0 {host/chip => chip}/chipsmoketest/chipsmoketest.go | 0 {host/chip => chip}/doc.go | 0 {host/cpu => cpu}/cpu.go | 0 {host/cpu => cpu}/cpu_linux.go | 0 {host/cpu => cpu}/cpu_other.go | 0 {host/cpu => cpu}/cpu_test.go | 0 {host/cpu => cpu}/doc.go | 0 {host/distro => distro}/devtree.go | 0 {host/distro => distro}/devtree_test.go | 0 {host/distro => distro}/distro.go | 0 {host/distro => distro}/distro_arm.go | 0 {host/distro => distro}/distro_arm64.go | 0 {host/distro => distro}/distro_linux.go | 0 {host/distro => distro}/distro_nonarm.go | 0 {host/distro => distro}/distro_nonlinux.go | 0 {host/distro => distro}/distro_test.go | 0 host/doc.go => doc.go | 0 example_test.go | 10 +++------- experimental/host/README.md | 5 ----- {host/fs => fs}/fs.go | 0 {host/fs => fs}/fs_linux.go | 0 {host/fs => fs}/fs_other.go | 0 {host/fs => fs}/ioctl.go | 0 {host/fs => fs}/ioctl_mips_like.go | 0 {host/fs => fs}/ioctl_other.go | 0 host/host.go => host.go | 0 host/host_arm.go => host_arm.go | 0 host/host_arm64.go => host_arm64.go | 0 host/host_linux.go => host_linux.go | 0 host/host_test.go => host_test.go | 0 {host => hostreg}/example_test.go | 10 +++++++--- periph.go => hostreg/periph.go | 0 periph_parallel.go => hostreg/periph_parallel.go | 0 periph_serial.go => hostreg/periph_serial.go | 0 periph_test.go => hostreg/periph_test.go | 0 {experimental/host/mt7688 => mt7688}/driver.go | 0 {experimental/host/mt7688 => mt7688}/gpio.go | 0 {experimental/host/mt7688 => mt7688}/mt7688.go | 0 .../host/mt7688 => mt7688}/mt7688_mips_like.go | 0 {experimental/host/mt7688 => mt7688}/mt7688_other.go | 0 {experimental/host/mt7688 => mt7688}/pin.go | 0 {experimental/host/netlink => netlink}/doc.go | 0 .../host/netlink => netlink}/netlink_linux.go | 0 .../host/netlink => netlink}/netlink_other.go | 0 {experimental/host/netlink => netlink}/onewire.go | 0 {host/odroidc1 => odroidc1}/doc.go | 0 {host/odroidc1 => odroidc1}/odroidc1.go | 0 {host/odroidc1 => odroidc1}/odroidc1_arm.go | 0 {host/odroidc1 => odroidc1}/odroidc1_other.go | 0 .../odroidc1smoketest/odroidc1smoketest.go | 0 {host/pine64 => pine64}/doc.go | 0 {host/pine64 => pine64}/pine64.go | 0 {host/pine64 => pine64}/pine64_arm.go | 0 {host/pine64 => pine64}/pine64_arm64.go | 0 {host/pine64 => pine64}/pine64_other.go | 0 {host/pmem => pmem}/alloc.go | 0 {host/pmem => pmem}/alloc_test.go | 0 {host/pmem => pmem}/doc.go | 0 {host/pmem => pmem}/example_test.go | 0 {host/pmem => pmem}/mem_linux.go | 0 {host/pmem => pmem}/mem_other.go | 0 {host/pmem => pmem}/pagemap.go | 0 {host/pmem => pmem}/pagemap_test.go | 0 {host/pmem => pmem}/smoketest.go | 0 {host/pmem => pmem}/smoketest_test.go | 0 {host/pmem => pmem}/view.go | 0 {host/pmem => pmem}/view_test.go | 0 {experimental/host/pru => pru}/doc.go | 0 {experimental/host/pru => pru}/pru.go | 0 {experimental/host/pru => pru}/pru_arm.go | 0 {experimental/host/pru => pru}/pru_other.go | 0 {host/rpi => rpi}/doc.go | 0 {host/rpi => rpi}/rpi.go | 0 {host/rpi => rpi}/rpi_arm.go | 0 {host/rpi => rpi}/rpi_arm64.go | 0 {host/rpi => rpi}/rpi_other.go | 0 {host/rpi => rpi}/rpi_test.go | 0 {experimental/host/serial => serial}/serial.go | 0 {experimental/host/serial => serial}/serial_fast.go | 0 {experimental/host/serial => serial}/serial_not_win.go | 0 {experimental/host/serial => serial}/serial_other.go | 0 {experimental/host/serial => serial}/serial_slow.go | 0 {experimental/host/serial => serial}/serial_windows.go | 0 {host/sysfs => sysfs}/doc.go | 0 {host/sysfs => sysfs}/example_test.go | 0 {host/sysfs => sysfs}/fs_linux.go | 0 {host/sysfs => sysfs}/fs_linux_test.go | 0 {host/sysfs => sysfs}/fs_other.go | 0 {host/sysfs => sysfs}/gpio.go | 0 {host/sysfs => sysfs}/gpio_test.go | 0 {host/sysfs => sysfs}/i2c.go | 0 {host/sysfs => sysfs}/i2c_test.go | 0 {host/sysfs => sysfs}/led.go | 0 {host/sysfs => sysfs}/led_test.go | 0 {host/sysfs => sysfs}/spi.go | 0 {host/sysfs => sysfs}/spi_test.go | 0 {host/sysfs => sysfs}/sysfs.go | 0 {host/sysfs => sysfs}/sysfs_linux.go | 0 {host/sysfs => sysfs}/sysfs_other.go | 0 {host/sysfs => sysfs}/sysfs_test.go | 0 {host/sysfs => sysfs}/sysfssmoketest/benchmark.go | 0 .../sysfssmoketest/benchmark_gpio_support.go | 0 .../sysfssmoketest/benchmark_gpio_support_test.go | 0 {host/sysfs => sysfs}/sysfssmoketest/sysfssmoketest.go | 0 {host/sysfs => sysfs}/thermal_sensor.go | 0 {host/sysfs => sysfs}/thermal_sensor_test.go | 0 {host/videocore => videocore}/example_test.go | 0 {host/videocore => videocore}/videocore.go | 0 {host/videocore => videocore}/videocore_test.go | 0 173 files changed, 10 insertions(+), 15 deletions(-) rename {host/allwinner => allwinner}/a20.go (100%) rename {host/allwinner => allwinner}/a64.go (100%) rename {host/allwinner => allwinner}/allwinner_arm.go (100%) rename {host/allwinner => allwinner}/allwinner_arm64.go (100%) rename {host/allwinner => allwinner}/allwinner_other.go (100%) rename {host/allwinner => allwinner}/allwinnersmoketest/allwinnersmoketest.go (100%) rename {host/allwinner => allwinner}/allwinnersmoketest/benchmark.go (100%) rename {host/allwinner => allwinner}/allwinnersmoketest/benchmark_fast_gpio_support.go (100%) rename {host/allwinner => allwinner}/allwinnersmoketest/benchmark_gpio_support.go (100%) rename {host/allwinner => allwinner}/allwinnersmoketest/benchmark_gpio_support_test.go (100%) rename {host/allwinner => allwinner}/clock.go (100%) rename {host/allwinner => allwinner}/detect.go (100%) rename {host/allwinner => allwinner}/dma.go (100%) rename {host/allwinner => allwinner}/doc.go (100%) rename {host/allwinner => allwinner}/gpio.go (100%) rename {host/allwinner => allwinner}/gpio_pl.go (100%) rename {host/allwinner => allwinner}/pwm.go (100%) rename {host/allwinner => allwinner}/r8.go (100%) rename {host/allwinner => allwinner}/spi.go (100%) rename {host/allwinner => allwinner}/timer.go (100%) rename {host/am335x => am335x}/am335x.go (100%) rename {host/am335x => am335x}/am335x_arm.go (100%) rename {host/am335x => am335x}/am335x_other.go (100%) rename {host/am335x => am335x}/doc.go (100%) rename {host/bcm283x => bcm283x}/bcm283x_arm.go (100%) rename {host/bcm283x => bcm283x}/bcm283x_arm64.go (100%) rename {host/bcm283x => bcm283x}/bcm283x_other.go (100%) rename {host/bcm283x => bcm283x}/bcm283x_test.go (100%) rename {host/bcm283x => bcm283x}/bcm283xsmoketest/bcm283xsmoketest.go (100%) rename {host/bcm283x => bcm283x}/bcm283xsmoketest/benchmark.go (100%) rename {host/bcm283x => bcm283x}/bcm283xsmoketest/benchmark_fast_gpio_support.go (100%) rename {host/bcm283x => bcm283x}/bcm283xsmoketest/benchmark_gpio_support.go (100%) rename {host/bcm283x => bcm283x}/bcm283xsmoketest/benchmark_gpio_support_test.go (100%) rename {host/bcm283x => bcm283x}/clock.go (100%) rename {host/bcm283x => bcm283x}/clock_test.go (100%) rename {host/bcm283x => bcm283x}/dma.go (100%) rename {host/bcm283x => bcm283x}/dma_test.go (100%) rename {host/bcm283x => bcm283x}/doc.go (100%) rename {host/bcm283x => bcm283x}/example_test.go (100%) rename {host/bcm283x => bcm283x}/gpio.go (100%) rename {host/bcm283x => bcm283x}/gpio_test.go (100%) rename {host/bcm283x => bcm283x}/pcm.go (100%) rename {host/bcm283x => bcm283x}/pwm.go (100%) rename {host/bcm283x => bcm283x}/pwm_test.go (100%) rename {host/bcm283x => bcm283x}/streams.go (100%) rename {host/bcm283x => bcm283x}/streams_test.go (100%) rename {host/bcm283x => bcm283x}/timer.go (100%) rename {host/bcm283x => bcm283x}/timer_test.go (100%) rename {host/beagle => beagle}/beagle.go (100%) rename {host/beagle => beagle}/beagle_arm.go (100%) rename {host/beagle => beagle}/beagle_other.go (100%) rename {host/beagle => beagle}/black/black.go (100%) rename {host/beagle => beagle}/black/black_arm.go (100%) rename {host/beagle => beagle}/black/black_other.go (100%) rename {host/beagle => beagle}/bone/bone.go (100%) rename {host/beagle => beagle}/bone/bone_arm.go (100%) rename {host/beagle => beagle}/bone/bone_other.go (100%) rename {host/beagle => beagle}/doc.go (100%) rename {host/beagle => beagle}/green/green.go (100%) rename {host/beagle => beagle}/green/green_arm.go (100%) rename {host/beagle => beagle}/green/green_other.go (100%) rename {host/chip => chip}/chip.go (100%) rename {host/chip => chip}/chip_arm.go (100%) rename {host/chip => chip}/chip_other.go (100%) rename {host/chip => chip}/chipsmoketest/chipsmoketest.go (100%) rename {host/chip => chip}/doc.go (100%) rename {host/cpu => cpu}/cpu.go (100%) rename {host/cpu => cpu}/cpu_linux.go (100%) rename {host/cpu => cpu}/cpu_other.go (100%) rename {host/cpu => cpu}/cpu_test.go (100%) rename {host/cpu => cpu}/doc.go (100%) rename {host/distro => distro}/devtree.go (100%) rename {host/distro => distro}/devtree_test.go (100%) rename {host/distro => distro}/distro.go (100%) rename {host/distro => distro}/distro_arm.go (100%) rename {host/distro => distro}/distro_arm64.go (100%) rename {host/distro => distro}/distro_linux.go (100%) rename {host/distro => distro}/distro_nonarm.go (100%) rename {host/distro => distro}/distro_nonlinux.go (100%) rename {host/distro => distro}/distro_test.go (100%) rename host/doc.go => doc.go (100%) delete mode 100644 experimental/host/README.md rename {host/fs => fs}/fs.go (100%) rename {host/fs => fs}/fs_linux.go (100%) rename {host/fs => fs}/fs_other.go (100%) rename {host/fs => fs}/ioctl.go (100%) rename {host/fs => fs}/ioctl_mips_like.go (100%) rename {host/fs => fs}/ioctl_other.go (100%) rename host/host.go => host.go (100%) rename host/host_arm.go => host_arm.go (100%) rename host/host_arm64.go => host_arm64.go (100%) rename host/host_linux.go => host_linux.go (100%) rename host/host_test.go => host_test.go (100%) rename {host => hostreg}/example_test.go (76%) rename periph.go => hostreg/periph.go (100%) rename periph_parallel.go => hostreg/periph_parallel.go (100%) rename periph_serial.go => hostreg/periph_serial.go (100%) rename periph_test.go => hostreg/periph_test.go (100%) rename {experimental/host/mt7688 => mt7688}/driver.go (100%) rename {experimental/host/mt7688 => mt7688}/gpio.go (100%) rename {experimental/host/mt7688 => mt7688}/mt7688.go (100%) rename {experimental/host/mt7688 => mt7688}/mt7688_mips_like.go (100%) rename {experimental/host/mt7688 => mt7688}/mt7688_other.go (100%) rename {experimental/host/mt7688 => mt7688}/pin.go (100%) rename {experimental/host/netlink => netlink}/doc.go (100%) rename {experimental/host/netlink => netlink}/netlink_linux.go (100%) rename {experimental/host/netlink => netlink}/netlink_other.go (100%) rename {experimental/host/netlink => netlink}/onewire.go (100%) rename {host/odroidc1 => odroidc1}/doc.go (100%) rename {host/odroidc1 => odroidc1}/odroidc1.go (100%) rename {host/odroidc1 => odroidc1}/odroidc1_arm.go (100%) rename {host/odroidc1 => odroidc1}/odroidc1_other.go (100%) rename {host/odroidc1 => odroidc1}/odroidc1smoketest/odroidc1smoketest.go (100%) rename {host/pine64 => pine64}/doc.go (100%) rename {host/pine64 => pine64}/pine64.go (100%) rename {host/pine64 => pine64}/pine64_arm.go (100%) rename {host/pine64 => pine64}/pine64_arm64.go (100%) rename {host/pine64 => pine64}/pine64_other.go (100%) rename {host/pmem => pmem}/alloc.go (100%) rename {host/pmem => pmem}/alloc_test.go (100%) rename {host/pmem => pmem}/doc.go (100%) rename {host/pmem => pmem}/example_test.go (100%) rename {host/pmem => pmem}/mem_linux.go (100%) rename {host/pmem => pmem}/mem_other.go (100%) rename {host/pmem => pmem}/pagemap.go (100%) rename {host/pmem => pmem}/pagemap_test.go (100%) rename {host/pmem => pmem}/smoketest.go (100%) rename {host/pmem => pmem}/smoketest_test.go (100%) rename {host/pmem => pmem}/view.go (100%) rename {host/pmem => pmem}/view_test.go (100%) rename {experimental/host/pru => pru}/doc.go (100%) rename {experimental/host/pru => pru}/pru.go (100%) rename {experimental/host/pru => pru}/pru_arm.go (100%) rename {experimental/host/pru => pru}/pru_other.go (100%) rename {host/rpi => rpi}/doc.go (100%) rename {host/rpi => rpi}/rpi.go (100%) rename {host/rpi => rpi}/rpi_arm.go (100%) rename {host/rpi => rpi}/rpi_arm64.go (100%) rename {host/rpi => rpi}/rpi_other.go (100%) rename {host/rpi => rpi}/rpi_test.go (100%) rename {experimental/host/serial => serial}/serial.go (100%) rename {experimental/host/serial => serial}/serial_fast.go (100%) rename {experimental/host/serial => serial}/serial_not_win.go (100%) rename {experimental/host/serial => serial}/serial_other.go (100%) rename {experimental/host/serial => serial}/serial_slow.go (100%) rename {experimental/host/serial => serial}/serial_windows.go (100%) rename {host/sysfs => sysfs}/doc.go (100%) rename {host/sysfs => sysfs}/example_test.go (100%) rename {host/sysfs => sysfs}/fs_linux.go (100%) rename {host/sysfs => sysfs}/fs_linux_test.go (100%) rename {host/sysfs => sysfs}/fs_other.go (100%) rename {host/sysfs => sysfs}/gpio.go (100%) rename {host/sysfs => sysfs}/gpio_test.go (100%) rename {host/sysfs => sysfs}/i2c.go (100%) rename {host/sysfs => sysfs}/i2c_test.go (100%) rename {host/sysfs => sysfs}/led.go (100%) rename {host/sysfs => sysfs}/led_test.go (100%) rename {host/sysfs => sysfs}/spi.go (100%) rename {host/sysfs => sysfs}/spi_test.go (100%) rename {host/sysfs => sysfs}/sysfs.go (100%) rename {host/sysfs => sysfs}/sysfs_linux.go (100%) rename {host/sysfs => sysfs}/sysfs_other.go (100%) rename {host/sysfs => sysfs}/sysfs_test.go (100%) rename {host/sysfs => sysfs}/sysfssmoketest/benchmark.go (100%) rename {host/sysfs => sysfs}/sysfssmoketest/benchmark_gpio_support.go (100%) rename {host/sysfs => sysfs}/sysfssmoketest/benchmark_gpio_support_test.go (100%) rename {host/sysfs => sysfs}/sysfssmoketest/sysfssmoketest.go (100%) rename {host/sysfs => sysfs}/thermal_sensor.go (100%) rename {host/sysfs => sysfs}/thermal_sensor_test.go (100%) rename {host/videocore => videocore}/example_test.go (100%) rename {host/videocore => videocore}/videocore.go (100%) rename {host/videocore => videocore}/videocore_test.go (100%) diff --git a/host/allwinner/a20.go b/allwinner/a20.go similarity index 100% rename from host/allwinner/a20.go rename to allwinner/a20.go diff --git a/host/allwinner/a64.go b/allwinner/a64.go similarity index 100% rename from host/allwinner/a64.go rename to allwinner/a64.go diff --git a/host/allwinner/allwinner_arm.go b/allwinner/allwinner_arm.go similarity index 100% rename from host/allwinner/allwinner_arm.go rename to allwinner/allwinner_arm.go diff --git a/host/allwinner/allwinner_arm64.go b/allwinner/allwinner_arm64.go similarity index 100% rename from host/allwinner/allwinner_arm64.go rename to allwinner/allwinner_arm64.go diff --git a/host/allwinner/allwinner_other.go b/allwinner/allwinner_other.go similarity index 100% rename from host/allwinner/allwinner_other.go rename to allwinner/allwinner_other.go diff --git a/host/allwinner/allwinnersmoketest/allwinnersmoketest.go b/allwinner/allwinnersmoketest/allwinnersmoketest.go similarity index 100% rename from host/allwinner/allwinnersmoketest/allwinnersmoketest.go rename to allwinner/allwinnersmoketest/allwinnersmoketest.go diff --git a/host/allwinner/allwinnersmoketest/benchmark.go b/allwinner/allwinnersmoketest/benchmark.go similarity index 100% rename from host/allwinner/allwinnersmoketest/benchmark.go rename to allwinner/allwinnersmoketest/benchmark.go diff --git a/host/allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go b/allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go similarity index 100% rename from host/allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go rename to allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go diff --git a/host/allwinner/allwinnersmoketest/benchmark_gpio_support.go b/allwinner/allwinnersmoketest/benchmark_gpio_support.go similarity index 100% rename from host/allwinner/allwinnersmoketest/benchmark_gpio_support.go rename to allwinner/allwinnersmoketest/benchmark_gpio_support.go diff --git a/host/allwinner/allwinnersmoketest/benchmark_gpio_support_test.go b/allwinner/allwinnersmoketest/benchmark_gpio_support_test.go similarity index 100% rename from host/allwinner/allwinnersmoketest/benchmark_gpio_support_test.go rename to allwinner/allwinnersmoketest/benchmark_gpio_support_test.go diff --git a/host/allwinner/clock.go b/allwinner/clock.go similarity index 100% rename from host/allwinner/clock.go rename to allwinner/clock.go diff --git a/host/allwinner/detect.go b/allwinner/detect.go similarity index 100% rename from host/allwinner/detect.go rename to allwinner/detect.go diff --git a/host/allwinner/dma.go b/allwinner/dma.go similarity index 100% rename from host/allwinner/dma.go rename to allwinner/dma.go diff --git a/host/allwinner/doc.go b/allwinner/doc.go similarity index 100% rename from host/allwinner/doc.go rename to allwinner/doc.go diff --git a/host/allwinner/gpio.go b/allwinner/gpio.go similarity index 100% rename from host/allwinner/gpio.go rename to allwinner/gpio.go diff --git a/host/allwinner/gpio_pl.go b/allwinner/gpio_pl.go similarity index 100% rename from host/allwinner/gpio_pl.go rename to allwinner/gpio_pl.go diff --git a/host/allwinner/pwm.go b/allwinner/pwm.go similarity index 100% rename from host/allwinner/pwm.go rename to allwinner/pwm.go diff --git a/host/allwinner/r8.go b/allwinner/r8.go similarity index 100% rename from host/allwinner/r8.go rename to allwinner/r8.go diff --git a/host/allwinner/spi.go b/allwinner/spi.go similarity index 100% rename from host/allwinner/spi.go rename to allwinner/spi.go diff --git a/host/allwinner/timer.go b/allwinner/timer.go similarity index 100% rename from host/allwinner/timer.go rename to allwinner/timer.go diff --git a/host/am335x/am335x.go b/am335x/am335x.go similarity index 100% rename from host/am335x/am335x.go rename to am335x/am335x.go diff --git a/host/am335x/am335x_arm.go b/am335x/am335x_arm.go similarity index 100% rename from host/am335x/am335x_arm.go rename to am335x/am335x_arm.go diff --git a/host/am335x/am335x_other.go b/am335x/am335x_other.go similarity index 100% rename from host/am335x/am335x_other.go rename to am335x/am335x_other.go diff --git a/host/am335x/doc.go b/am335x/doc.go similarity index 100% rename from host/am335x/doc.go rename to am335x/doc.go diff --git a/host/bcm283x/bcm283x_arm.go b/bcm283x/bcm283x_arm.go similarity index 100% rename from host/bcm283x/bcm283x_arm.go rename to bcm283x/bcm283x_arm.go diff --git a/host/bcm283x/bcm283x_arm64.go b/bcm283x/bcm283x_arm64.go similarity index 100% rename from host/bcm283x/bcm283x_arm64.go rename to bcm283x/bcm283x_arm64.go diff --git a/host/bcm283x/bcm283x_other.go b/bcm283x/bcm283x_other.go similarity index 100% rename from host/bcm283x/bcm283x_other.go rename to bcm283x/bcm283x_other.go diff --git a/host/bcm283x/bcm283x_test.go b/bcm283x/bcm283x_test.go similarity index 100% rename from host/bcm283x/bcm283x_test.go rename to bcm283x/bcm283x_test.go diff --git a/host/bcm283x/bcm283xsmoketest/bcm283xsmoketest.go b/bcm283x/bcm283xsmoketest/bcm283xsmoketest.go similarity index 100% rename from host/bcm283x/bcm283xsmoketest/bcm283xsmoketest.go rename to bcm283x/bcm283xsmoketest/bcm283xsmoketest.go diff --git a/host/bcm283x/bcm283xsmoketest/benchmark.go b/bcm283x/bcm283xsmoketest/benchmark.go similarity index 100% rename from host/bcm283x/bcm283xsmoketest/benchmark.go rename to bcm283x/bcm283xsmoketest/benchmark.go diff --git a/host/bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go b/bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go similarity index 100% rename from host/bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go rename to bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go diff --git a/host/bcm283x/bcm283xsmoketest/benchmark_gpio_support.go b/bcm283x/bcm283xsmoketest/benchmark_gpio_support.go similarity index 100% rename from host/bcm283x/bcm283xsmoketest/benchmark_gpio_support.go rename to bcm283x/bcm283xsmoketest/benchmark_gpio_support.go diff --git a/host/bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go b/bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go similarity index 100% rename from host/bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go rename to bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go diff --git a/host/bcm283x/clock.go b/bcm283x/clock.go similarity index 100% rename from host/bcm283x/clock.go rename to bcm283x/clock.go diff --git a/host/bcm283x/clock_test.go b/bcm283x/clock_test.go similarity index 100% rename from host/bcm283x/clock_test.go rename to bcm283x/clock_test.go diff --git a/host/bcm283x/dma.go b/bcm283x/dma.go similarity index 100% rename from host/bcm283x/dma.go rename to bcm283x/dma.go diff --git a/host/bcm283x/dma_test.go b/bcm283x/dma_test.go similarity index 100% rename from host/bcm283x/dma_test.go rename to bcm283x/dma_test.go diff --git a/host/bcm283x/doc.go b/bcm283x/doc.go similarity index 100% rename from host/bcm283x/doc.go rename to bcm283x/doc.go diff --git a/host/bcm283x/example_test.go b/bcm283x/example_test.go similarity index 100% rename from host/bcm283x/example_test.go rename to bcm283x/example_test.go diff --git a/host/bcm283x/gpio.go b/bcm283x/gpio.go similarity index 100% rename from host/bcm283x/gpio.go rename to bcm283x/gpio.go diff --git a/host/bcm283x/gpio_test.go b/bcm283x/gpio_test.go similarity index 100% rename from host/bcm283x/gpio_test.go rename to bcm283x/gpio_test.go diff --git a/host/bcm283x/pcm.go b/bcm283x/pcm.go similarity index 100% rename from host/bcm283x/pcm.go rename to bcm283x/pcm.go diff --git a/host/bcm283x/pwm.go b/bcm283x/pwm.go similarity index 100% rename from host/bcm283x/pwm.go rename to bcm283x/pwm.go diff --git a/host/bcm283x/pwm_test.go b/bcm283x/pwm_test.go similarity index 100% rename from host/bcm283x/pwm_test.go rename to bcm283x/pwm_test.go diff --git a/host/bcm283x/streams.go b/bcm283x/streams.go similarity index 100% rename from host/bcm283x/streams.go rename to bcm283x/streams.go diff --git a/host/bcm283x/streams_test.go b/bcm283x/streams_test.go similarity index 100% rename from host/bcm283x/streams_test.go rename to bcm283x/streams_test.go diff --git a/host/bcm283x/timer.go b/bcm283x/timer.go similarity index 100% rename from host/bcm283x/timer.go rename to bcm283x/timer.go diff --git a/host/bcm283x/timer_test.go b/bcm283x/timer_test.go similarity index 100% rename from host/bcm283x/timer_test.go rename to bcm283x/timer_test.go diff --git a/host/beagle/beagle.go b/beagle/beagle.go similarity index 100% rename from host/beagle/beagle.go rename to beagle/beagle.go diff --git a/host/beagle/beagle_arm.go b/beagle/beagle_arm.go similarity index 100% rename from host/beagle/beagle_arm.go rename to beagle/beagle_arm.go diff --git a/host/beagle/beagle_other.go b/beagle/beagle_other.go similarity index 100% rename from host/beagle/beagle_other.go rename to beagle/beagle_other.go diff --git a/host/beagle/black/black.go b/beagle/black/black.go similarity index 100% rename from host/beagle/black/black.go rename to beagle/black/black.go diff --git a/host/beagle/black/black_arm.go b/beagle/black/black_arm.go similarity index 100% rename from host/beagle/black/black_arm.go rename to beagle/black/black_arm.go diff --git a/host/beagle/black/black_other.go b/beagle/black/black_other.go similarity index 100% rename from host/beagle/black/black_other.go rename to beagle/black/black_other.go diff --git a/host/beagle/bone/bone.go b/beagle/bone/bone.go similarity index 100% rename from host/beagle/bone/bone.go rename to beagle/bone/bone.go diff --git a/host/beagle/bone/bone_arm.go b/beagle/bone/bone_arm.go similarity index 100% rename from host/beagle/bone/bone_arm.go rename to beagle/bone/bone_arm.go diff --git a/host/beagle/bone/bone_other.go b/beagle/bone/bone_other.go similarity index 100% rename from host/beagle/bone/bone_other.go rename to beagle/bone/bone_other.go diff --git a/host/beagle/doc.go b/beagle/doc.go similarity index 100% rename from host/beagle/doc.go rename to beagle/doc.go diff --git a/host/beagle/green/green.go b/beagle/green/green.go similarity index 100% rename from host/beagle/green/green.go rename to beagle/green/green.go diff --git a/host/beagle/green/green_arm.go b/beagle/green/green_arm.go similarity index 100% rename from host/beagle/green/green_arm.go rename to beagle/green/green_arm.go diff --git a/host/beagle/green/green_other.go b/beagle/green/green_other.go similarity index 100% rename from host/beagle/green/green_other.go rename to beagle/green/green_other.go diff --git a/host/chip/chip.go b/chip/chip.go similarity index 100% rename from host/chip/chip.go rename to chip/chip.go diff --git a/host/chip/chip_arm.go b/chip/chip_arm.go similarity index 100% rename from host/chip/chip_arm.go rename to chip/chip_arm.go diff --git a/host/chip/chip_other.go b/chip/chip_other.go similarity index 100% rename from host/chip/chip_other.go rename to chip/chip_other.go diff --git a/host/chip/chipsmoketest/chipsmoketest.go b/chip/chipsmoketest/chipsmoketest.go similarity index 100% rename from host/chip/chipsmoketest/chipsmoketest.go rename to chip/chipsmoketest/chipsmoketest.go diff --git a/host/chip/doc.go b/chip/doc.go similarity index 100% rename from host/chip/doc.go rename to chip/doc.go diff --git a/host/cpu/cpu.go b/cpu/cpu.go similarity index 100% rename from host/cpu/cpu.go rename to cpu/cpu.go diff --git a/host/cpu/cpu_linux.go b/cpu/cpu_linux.go similarity index 100% rename from host/cpu/cpu_linux.go rename to cpu/cpu_linux.go diff --git a/host/cpu/cpu_other.go b/cpu/cpu_other.go similarity index 100% rename from host/cpu/cpu_other.go rename to cpu/cpu_other.go diff --git a/host/cpu/cpu_test.go b/cpu/cpu_test.go similarity index 100% rename from host/cpu/cpu_test.go rename to cpu/cpu_test.go diff --git a/host/cpu/doc.go b/cpu/doc.go similarity index 100% rename from host/cpu/doc.go rename to cpu/doc.go diff --git a/host/distro/devtree.go b/distro/devtree.go similarity index 100% rename from host/distro/devtree.go rename to distro/devtree.go diff --git a/host/distro/devtree_test.go b/distro/devtree_test.go similarity index 100% rename from host/distro/devtree_test.go rename to distro/devtree_test.go diff --git a/host/distro/distro.go b/distro/distro.go similarity index 100% rename from host/distro/distro.go rename to distro/distro.go diff --git a/host/distro/distro_arm.go b/distro/distro_arm.go similarity index 100% rename from host/distro/distro_arm.go rename to distro/distro_arm.go diff --git a/host/distro/distro_arm64.go b/distro/distro_arm64.go similarity index 100% rename from host/distro/distro_arm64.go rename to distro/distro_arm64.go diff --git a/host/distro/distro_linux.go b/distro/distro_linux.go similarity index 100% rename from host/distro/distro_linux.go rename to distro/distro_linux.go diff --git a/host/distro/distro_nonarm.go b/distro/distro_nonarm.go similarity index 100% rename from host/distro/distro_nonarm.go rename to distro/distro_nonarm.go diff --git a/host/distro/distro_nonlinux.go b/distro/distro_nonlinux.go similarity index 100% rename from host/distro/distro_nonlinux.go rename to distro/distro_nonlinux.go diff --git a/host/distro/distro_test.go b/distro/distro_test.go similarity index 100% rename from host/distro/distro_test.go rename to distro/distro_test.go diff --git a/host/doc.go b/doc.go similarity index 100% rename from host/doc.go rename to doc.go diff --git a/example_test.go b/example_test.go index 8a42eee0..3fec7282 100644 --- a/example_test.go +++ b/example_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. -package periph_test +package host_test import ( "fmt" @@ -11,12 +11,8 @@ import ( "periph.io/x/periph/host" ) -func Example() { - // host.Init() registers all the periph-provided host driver automatically, - // so it is preferable to use than periph.Init(). - // - // You can also use periph.io/x/extra/hostextra.Init() for additional drivers - // that depends on cgo and/or third party packages. +func ExampleInit() { + // Make sure periph is initialized. state, err := host.Init() if err != nil { log.Fatalf("failed to initialize periph: %v", err) diff --git a/experimental/host/README.md b/experimental/host/README.md deleted file mode 100644 index e99b1eed..00000000 --- a/experimental/host/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# experimental/host - -You are welcome to send PR (pull request) to add experimental host drivers here. -Please follow the instructions in -[project/contributing/](https://periph.io/project/contributing/). diff --git a/host/fs/fs.go b/fs/fs.go similarity index 100% rename from host/fs/fs.go rename to fs/fs.go diff --git a/host/fs/fs_linux.go b/fs/fs_linux.go similarity index 100% rename from host/fs/fs_linux.go rename to fs/fs_linux.go diff --git a/host/fs/fs_other.go b/fs/fs_other.go similarity index 100% rename from host/fs/fs_other.go rename to fs/fs_other.go diff --git a/host/fs/ioctl.go b/fs/ioctl.go similarity index 100% rename from host/fs/ioctl.go rename to fs/ioctl.go diff --git a/host/fs/ioctl_mips_like.go b/fs/ioctl_mips_like.go similarity index 100% rename from host/fs/ioctl_mips_like.go rename to fs/ioctl_mips_like.go diff --git a/host/fs/ioctl_other.go b/fs/ioctl_other.go similarity index 100% rename from host/fs/ioctl_other.go rename to fs/ioctl_other.go diff --git a/host/host.go b/host.go similarity index 100% rename from host/host.go rename to host.go diff --git a/host/host_arm.go b/host_arm.go similarity index 100% rename from host/host_arm.go rename to host_arm.go diff --git a/host/host_arm64.go b/host_arm64.go similarity index 100% rename from host/host_arm64.go rename to host_arm64.go diff --git a/host/host_linux.go b/host_linux.go similarity index 100% rename from host/host_linux.go rename to host_linux.go diff --git a/host/host_test.go b/host_test.go similarity index 100% rename from host/host_test.go rename to host_test.go diff --git a/host/example_test.go b/hostreg/example_test.go similarity index 76% rename from host/example_test.go rename to hostreg/example_test.go index 3fec7282..8a42eee0 100644 --- a/host/example_test.go +++ b/hostreg/example_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. -package host_test +package periph_test import ( "fmt" @@ -11,8 +11,12 @@ import ( "periph.io/x/periph/host" ) -func ExampleInit() { - // Make sure periph is initialized. +func Example() { + // host.Init() registers all the periph-provided host driver automatically, + // so it is preferable to use than periph.Init(). + // + // You can also use periph.io/x/extra/hostextra.Init() for additional drivers + // that depends on cgo and/or third party packages. state, err := host.Init() if err != nil { log.Fatalf("failed to initialize periph: %v", err) diff --git a/periph.go b/hostreg/periph.go similarity index 100% rename from periph.go rename to hostreg/periph.go diff --git a/periph_parallel.go b/hostreg/periph_parallel.go similarity index 100% rename from periph_parallel.go rename to hostreg/periph_parallel.go diff --git a/periph_serial.go b/hostreg/periph_serial.go similarity index 100% rename from periph_serial.go rename to hostreg/periph_serial.go diff --git a/periph_test.go b/hostreg/periph_test.go similarity index 100% rename from periph_test.go rename to hostreg/periph_test.go diff --git a/experimental/host/mt7688/driver.go b/mt7688/driver.go similarity index 100% rename from experimental/host/mt7688/driver.go rename to mt7688/driver.go diff --git a/experimental/host/mt7688/gpio.go b/mt7688/gpio.go similarity index 100% rename from experimental/host/mt7688/gpio.go rename to mt7688/gpio.go diff --git a/experimental/host/mt7688/mt7688.go b/mt7688/mt7688.go similarity index 100% rename from experimental/host/mt7688/mt7688.go rename to mt7688/mt7688.go diff --git a/experimental/host/mt7688/mt7688_mips_like.go b/mt7688/mt7688_mips_like.go similarity index 100% rename from experimental/host/mt7688/mt7688_mips_like.go rename to mt7688/mt7688_mips_like.go diff --git a/experimental/host/mt7688/mt7688_other.go b/mt7688/mt7688_other.go similarity index 100% rename from experimental/host/mt7688/mt7688_other.go rename to mt7688/mt7688_other.go diff --git a/experimental/host/mt7688/pin.go b/mt7688/pin.go similarity index 100% rename from experimental/host/mt7688/pin.go rename to mt7688/pin.go diff --git a/experimental/host/netlink/doc.go b/netlink/doc.go similarity index 100% rename from experimental/host/netlink/doc.go rename to netlink/doc.go diff --git a/experimental/host/netlink/netlink_linux.go b/netlink/netlink_linux.go similarity index 100% rename from experimental/host/netlink/netlink_linux.go rename to netlink/netlink_linux.go diff --git a/experimental/host/netlink/netlink_other.go b/netlink/netlink_other.go similarity index 100% rename from experimental/host/netlink/netlink_other.go rename to netlink/netlink_other.go diff --git a/experimental/host/netlink/onewire.go b/netlink/onewire.go similarity index 100% rename from experimental/host/netlink/onewire.go rename to netlink/onewire.go diff --git a/host/odroidc1/doc.go b/odroidc1/doc.go similarity index 100% rename from host/odroidc1/doc.go rename to odroidc1/doc.go diff --git a/host/odroidc1/odroidc1.go b/odroidc1/odroidc1.go similarity index 100% rename from host/odroidc1/odroidc1.go rename to odroidc1/odroidc1.go diff --git a/host/odroidc1/odroidc1_arm.go b/odroidc1/odroidc1_arm.go similarity index 100% rename from host/odroidc1/odroidc1_arm.go rename to odroidc1/odroidc1_arm.go diff --git a/host/odroidc1/odroidc1_other.go b/odroidc1/odroidc1_other.go similarity index 100% rename from host/odroidc1/odroidc1_other.go rename to odroidc1/odroidc1_other.go diff --git a/host/odroidc1/odroidc1smoketest/odroidc1smoketest.go b/odroidc1/odroidc1smoketest/odroidc1smoketest.go similarity index 100% rename from host/odroidc1/odroidc1smoketest/odroidc1smoketest.go rename to odroidc1/odroidc1smoketest/odroidc1smoketest.go diff --git a/host/pine64/doc.go b/pine64/doc.go similarity index 100% rename from host/pine64/doc.go rename to pine64/doc.go diff --git a/host/pine64/pine64.go b/pine64/pine64.go similarity index 100% rename from host/pine64/pine64.go rename to pine64/pine64.go diff --git a/host/pine64/pine64_arm.go b/pine64/pine64_arm.go similarity index 100% rename from host/pine64/pine64_arm.go rename to pine64/pine64_arm.go diff --git a/host/pine64/pine64_arm64.go b/pine64/pine64_arm64.go similarity index 100% rename from host/pine64/pine64_arm64.go rename to pine64/pine64_arm64.go diff --git a/host/pine64/pine64_other.go b/pine64/pine64_other.go similarity index 100% rename from host/pine64/pine64_other.go rename to pine64/pine64_other.go diff --git a/host/pmem/alloc.go b/pmem/alloc.go similarity index 100% rename from host/pmem/alloc.go rename to pmem/alloc.go diff --git a/host/pmem/alloc_test.go b/pmem/alloc_test.go similarity index 100% rename from host/pmem/alloc_test.go rename to pmem/alloc_test.go diff --git a/host/pmem/doc.go b/pmem/doc.go similarity index 100% rename from host/pmem/doc.go rename to pmem/doc.go diff --git a/host/pmem/example_test.go b/pmem/example_test.go similarity index 100% rename from host/pmem/example_test.go rename to pmem/example_test.go diff --git a/host/pmem/mem_linux.go b/pmem/mem_linux.go similarity index 100% rename from host/pmem/mem_linux.go rename to pmem/mem_linux.go diff --git a/host/pmem/mem_other.go b/pmem/mem_other.go similarity index 100% rename from host/pmem/mem_other.go rename to pmem/mem_other.go diff --git a/host/pmem/pagemap.go b/pmem/pagemap.go similarity index 100% rename from host/pmem/pagemap.go rename to pmem/pagemap.go diff --git a/host/pmem/pagemap_test.go b/pmem/pagemap_test.go similarity index 100% rename from host/pmem/pagemap_test.go rename to pmem/pagemap_test.go diff --git a/host/pmem/smoketest.go b/pmem/smoketest.go similarity index 100% rename from host/pmem/smoketest.go rename to pmem/smoketest.go diff --git a/host/pmem/smoketest_test.go b/pmem/smoketest_test.go similarity index 100% rename from host/pmem/smoketest_test.go rename to pmem/smoketest_test.go diff --git a/host/pmem/view.go b/pmem/view.go similarity index 100% rename from host/pmem/view.go rename to pmem/view.go diff --git a/host/pmem/view_test.go b/pmem/view_test.go similarity index 100% rename from host/pmem/view_test.go rename to pmem/view_test.go diff --git a/experimental/host/pru/doc.go b/pru/doc.go similarity index 100% rename from experimental/host/pru/doc.go rename to pru/doc.go diff --git a/experimental/host/pru/pru.go b/pru/pru.go similarity index 100% rename from experimental/host/pru/pru.go rename to pru/pru.go diff --git a/experimental/host/pru/pru_arm.go b/pru/pru_arm.go similarity index 100% rename from experimental/host/pru/pru_arm.go rename to pru/pru_arm.go diff --git a/experimental/host/pru/pru_other.go b/pru/pru_other.go similarity index 100% rename from experimental/host/pru/pru_other.go rename to pru/pru_other.go diff --git a/host/rpi/doc.go b/rpi/doc.go similarity index 100% rename from host/rpi/doc.go rename to rpi/doc.go diff --git a/host/rpi/rpi.go b/rpi/rpi.go similarity index 100% rename from host/rpi/rpi.go rename to rpi/rpi.go diff --git a/host/rpi/rpi_arm.go b/rpi/rpi_arm.go similarity index 100% rename from host/rpi/rpi_arm.go rename to rpi/rpi_arm.go diff --git a/host/rpi/rpi_arm64.go b/rpi/rpi_arm64.go similarity index 100% rename from host/rpi/rpi_arm64.go rename to rpi/rpi_arm64.go diff --git a/host/rpi/rpi_other.go b/rpi/rpi_other.go similarity index 100% rename from host/rpi/rpi_other.go rename to rpi/rpi_other.go diff --git a/host/rpi/rpi_test.go b/rpi/rpi_test.go similarity index 100% rename from host/rpi/rpi_test.go rename to rpi/rpi_test.go diff --git a/experimental/host/serial/serial.go b/serial/serial.go similarity index 100% rename from experimental/host/serial/serial.go rename to serial/serial.go diff --git a/experimental/host/serial/serial_fast.go b/serial/serial_fast.go similarity index 100% rename from experimental/host/serial/serial_fast.go rename to serial/serial_fast.go diff --git a/experimental/host/serial/serial_not_win.go b/serial/serial_not_win.go similarity index 100% rename from experimental/host/serial/serial_not_win.go rename to serial/serial_not_win.go diff --git a/experimental/host/serial/serial_other.go b/serial/serial_other.go similarity index 100% rename from experimental/host/serial/serial_other.go rename to serial/serial_other.go diff --git a/experimental/host/serial/serial_slow.go b/serial/serial_slow.go similarity index 100% rename from experimental/host/serial/serial_slow.go rename to serial/serial_slow.go diff --git a/experimental/host/serial/serial_windows.go b/serial/serial_windows.go similarity index 100% rename from experimental/host/serial/serial_windows.go rename to serial/serial_windows.go diff --git a/host/sysfs/doc.go b/sysfs/doc.go similarity index 100% rename from host/sysfs/doc.go rename to sysfs/doc.go diff --git a/host/sysfs/example_test.go b/sysfs/example_test.go similarity index 100% rename from host/sysfs/example_test.go rename to sysfs/example_test.go diff --git a/host/sysfs/fs_linux.go b/sysfs/fs_linux.go similarity index 100% rename from host/sysfs/fs_linux.go rename to sysfs/fs_linux.go diff --git a/host/sysfs/fs_linux_test.go b/sysfs/fs_linux_test.go similarity index 100% rename from host/sysfs/fs_linux_test.go rename to sysfs/fs_linux_test.go diff --git a/host/sysfs/fs_other.go b/sysfs/fs_other.go similarity index 100% rename from host/sysfs/fs_other.go rename to sysfs/fs_other.go diff --git a/host/sysfs/gpio.go b/sysfs/gpio.go similarity index 100% rename from host/sysfs/gpio.go rename to sysfs/gpio.go diff --git a/host/sysfs/gpio_test.go b/sysfs/gpio_test.go similarity index 100% rename from host/sysfs/gpio_test.go rename to sysfs/gpio_test.go diff --git a/host/sysfs/i2c.go b/sysfs/i2c.go similarity index 100% rename from host/sysfs/i2c.go rename to sysfs/i2c.go diff --git a/host/sysfs/i2c_test.go b/sysfs/i2c_test.go similarity index 100% rename from host/sysfs/i2c_test.go rename to sysfs/i2c_test.go diff --git a/host/sysfs/led.go b/sysfs/led.go similarity index 100% rename from host/sysfs/led.go rename to sysfs/led.go diff --git a/host/sysfs/led_test.go b/sysfs/led_test.go similarity index 100% rename from host/sysfs/led_test.go rename to sysfs/led_test.go diff --git a/host/sysfs/spi.go b/sysfs/spi.go similarity index 100% rename from host/sysfs/spi.go rename to sysfs/spi.go diff --git a/host/sysfs/spi_test.go b/sysfs/spi_test.go similarity index 100% rename from host/sysfs/spi_test.go rename to sysfs/spi_test.go diff --git a/host/sysfs/sysfs.go b/sysfs/sysfs.go similarity index 100% rename from host/sysfs/sysfs.go rename to sysfs/sysfs.go diff --git a/host/sysfs/sysfs_linux.go b/sysfs/sysfs_linux.go similarity index 100% rename from host/sysfs/sysfs_linux.go rename to sysfs/sysfs_linux.go diff --git a/host/sysfs/sysfs_other.go b/sysfs/sysfs_other.go similarity index 100% rename from host/sysfs/sysfs_other.go rename to sysfs/sysfs_other.go diff --git a/host/sysfs/sysfs_test.go b/sysfs/sysfs_test.go similarity index 100% rename from host/sysfs/sysfs_test.go rename to sysfs/sysfs_test.go diff --git a/host/sysfs/sysfssmoketest/benchmark.go b/sysfs/sysfssmoketest/benchmark.go similarity index 100% rename from host/sysfs/sysfssmoketest/benchmark.go rename to sysfs/sysfssmoketest/benchmark.go diff --git a/host/sysfs/sysfssmoketest/benchmark_gpio_support.go b/sysfs/sysfssmoketest/benchmark_gpio_support.go similarity index 100% rename from host/sysfs/sysfssmoketest/benchmark_gpio_support.go rename to sysfs/sysfssmoketest/benchmark_gpio_support.go diff --git a/host/sysfs/sysfssmoketest/benchmark_gpio_support_test.go b/sysfs/sysfssmoketest/benchmark_gpio_support_test.go similarity index 100% rename from host/sysfs/sysfssmoketest/benchmark_gpio_support_test.go rename to sysfs/sysfssmoketest/benchmark_gpio_support_test.go diff --git a/host/sysfs/sysfssmoketest/sysfssmoketest.go b/sysfs/sysfssmoketest/sysfssmoketest.go similarity index 100% rename from host/sysfs/sysfssmoketest/sysfssmoketest.go rename to sysfs/sysfssmoketest/sysfssmoketest.go diff --git a/host/sysfs/thermal_sensor.go b/sysfs/thermal_sensor.go similarity index 100% rename from host/sysfs/thermal_sensor.go rename to sysfs/thermal_sensor.go diff --git a/host/sysfs/thermal_sensor_test.go b/sysfs/thermal_sensor_test.go similarity index 100% rename from host/sysfs/thermal_sensor_test.go rename to sysfs/thermal_sensor_test.go diff --git a/host/videocore/example_test.go b/videocore/example_test.go similarity index 100% rename from host/videocore/example_test.go rename to videocore/example_test.go diff --git a/host/videocore/videocore.go b/videocore/videocore.go similarity index 100% rename from host/videocore/videocore.go rename to videocore/videocore.go diff --git a/host/videocore/videocore_test.go b/videocore/videocore_test.go similarity index 100% rename from host/videocore/videocore_test.go rename to videocore/videocore_test.go