]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
nvmem: sunxi_sid: Set type to OTP
authorSamuel Holland <samuel@sholland.org>
Mon, 19 Apr 2021 01:58:15 +0000 (20:58 -0500)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 17 May 2021 09:29:05 +0000 (10:29 +0100)
This device currently reports an "Unknown" type in sysfs.
Since it is an eFuse hardware device, set its type to OTP.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
drivers/nvmem/sunxi_sid.c

index e26ef1bbf1981ebcc13aca5fef4af9d4b7aac0a0..275b9155e473307fb82660f655e98022cde60817 100644 (file)
@@ -142,6 +142,7 @@ static int sunxi_sid_probe(struct platform_device *pdev)
 
        nvmem_cfg->dev = dev;
        nvmem_cfg->name = "sunxi-sid";
+       nvmem_cfg->type = NVMEM_TYPE_OTP;
        nvmem_cfg->read_only = true;
        nvmem_cfg->size = cfg->size;
        nvmem_cfg->word_size = 1;