summaryrefslogtreecommitdiffstats
path: root/mstarddc_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mstarddc_spi.c')
-rw-r--r--mstarddc_spi.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/mstarddc_spi.c b/mstarddc_spi.c
index 0f638df2e..a7816a4b6 100644
--- a/mstarddc_spi.c
+++ b/mstarddc_spi.c
@@ -150,7 +150,7 @@ static const struct spi_master spi_master_mstarddc = {
};
/* Returns 0 upon success, a negative number upon errors. */
-int mstarddc_spi_init(void)
+static int mstarddc_spi_init(void)
{
int ret = 0;
int mstarddc_fd = -1;
@@ -252,4 +252,14 @@ out:
return ret;
}
+const struct programmer_entry programmer_mstarddc_spi = {
+ .name = "mstarddc_spi",
+ .type = OTHER,
+ .devs.note = "MSTAR DDC devices addressable via /dev/i2c-* on Linux.\n",
+ .init = mstarddc_spi_init,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .delay = internal_delay,
+};
+
#endif