[PATCH v3] powerpc/powernv: add hdat attribute to sysfs

Michael Ellerman mpe at ellerman.id.au
Mon Feb 27 21:56:40 AEDT 2017


Matt Brown <matthew.brown.dev at gmail.com> writes:
> diff --git a/arch/powerpc/platforms/powernv/opal-hdat.c b/arch/powerpc/platforms/powernv/opal-hdat.c
> new file mode 100644
> index 0000000..3315dd3
> --- /dev/null
> +++ b/arch/powerpc/platforms/powernv/opal-hdat.c
> @@ -0,0 +1,65 @@
...
> +
> +
> +/* HDAT attribute for sysfs */
> +static struct bin_attribute hdat_attr = {
> +	.attr = {.name = "hdat", .mode = 0444},
                                         ^^^^
ajd and oohal report to my office.

cheers


More information about the Linuxppc-dev mailing list