net: ipa: add an endpoint device attribute group
authorAlex Elder <elder@linaro.org>
Tue, 19 Jul 2022 19:16:39 +0000 (14:16 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jul 2022 04:03:26 +0000 (21:03 -0700)
commitd79e4164d0d51f5a39ee7208823335a5fee902e0
treeacb4a82e7db2ca845842db1da5f4d5cf9195a8ac
parentf12b86c0d60689aa3973bab1fcea0ead9d77e23b
net: ipa: add an endpoint device attribute group

Create a new attribute group meant to provide a single place that
defines endpoint IDs that might be needed by user space.  Not all
defined endpoints are presented, and only those that are defined
will be made visible.

The new attributes use "extended" device attributes to hold endpoint
IDs, which is a little more compact and efficient.  Reimplement the
existing modem endpoint ID attribute files using common code.

Signed-off-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20220719191639.373249-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/ABI/testing/sysfs-devices-platform-soc-ipa
drivers/net/ipa/ipa_main.c
drivers/net/ipa/ipa_sysfs.c
drivers/net/ipa/ipa_sysfs.h