docs: powerpc: vas-api: Fix the structure name and the ioctl number in the example

struct vas_setup_attr does not exist; the name is struct
vas_tx_win_open_attr. The example also defines VAS_TX_WIN_OPEN with the
request number 1, while arch/powerpc/include/uapi/asm/vas-api.h has used
0x20 since the ioctl was added.

Use struct vas_tx_win_open_attr and 0x20.

Fixes: c12e38b1d5 ("Documentation/powerpc: VAS API")
Suggested-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260907004925.10948-1-kmehltretter@gmail.com>
This commit is contained in:
Karl Mehltretter 2026-09-07 02:49:25 +02:00 committed by Jonathan Corbet
parent e0e7f6cc8d
commit ee288798d3

View File

@ -136,7 +136,7 @@ a connection with NX co-processor engine:
follows::
#define VAS_MAGIC 'v'
#define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 1,
#define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 0x20,
struct vas_tx_win_open_attr)
struct vas_tx_win_open_attr attr;
@ -265,7 +265,7 @@ Simple example
{
int rc, fd;
void *addr;
struct vas_setup_attr txattr;
struct vas_tx_win_open_attr txattr;
fd = open("/dev/crypto/nx-gzip", O_RDWR);
if (fd < 0) {