Re: [PATCH v5] stm: class: Add MIPI OST protocol support

From
Alexander Shishkin <alexander.shishkin@linux.intel.com>
Date
2026-01-30 09:48:11
Also in
linux-arm-kernel, linux-doc, lkml
Reply to
Yingchao Deng, 2026-01-29
Yingchao Deng [off-list ref] writes:
quoted hunk ↗ jump to hunk
+	for (i = 1; i < ARRAY_SIZE(str_ost_entity_type); i++) {
+		if (i == pn->entity_type)
+			sz += sysfs_emit_at(page, sz, "[%s] ", str_ost_entity_type[i]);
+		else
+			sz += sysfs_emit_at(page, sz, "%s ", str_ost_entity_type[i]);
+	}
Greg hates this. Documentation [0] says "preferably": "Attributes should
be ASCII text files, preferably with only one value per file.", but
somebody will get yelled at if this gets spotted, and since it's
probably going to be me, let's maybe not do this.

Also, the ST Microsystems people don't need to be CC'd on Software Trace
Module patches: it's the same TLA meaning 2 different things. Everybody
does this, so I'm assuming they're cool with it, but FYI.

[0] https://docs.kernel.org/filesystems/sysfs.html#attributes

Thanks,
--
Alex
Thread (5 messages) 5 messages, 4 authors, last reply 2026-02-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help