Skip to content

Commit a8f500c

Browse files
quic-bjorandeandersson
authored andcommitted
rpmsg: glink: Fix spelling of peek
The code is peeking into the buffers, not peaking. Fix this throughout the glink drivers. Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Reviewed-by: Chris Lew <quic_clew@quicinc.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230214224746.1996130-1-quic_bjorande@quicinc.com
1 parent fb23b97 commit a8f500c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

drivers/rpmsg/qcom_glink_native.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ static size_t qcom_glink_rx_avail(struct qcom_glink *glink)
274274
return glink->rx_pipe->avail(glink->rx_pipe);
275275
}
276276

277-
static void qcom_glink_rx_peak(struct qcom_glink *glink,
277+
static void qcom_glink_rx_peek(struct qcom_glink *glink,
278278
void *data, unsigned int offset, size_t count)
279279
{
280-
glink->rx_pipe->peak(glink->rx_pipe, data, offset, count);
280+
glink->rx_pipe->peek(glink->rx_pipe, data, offset, count);
281281
}
282282

283283
static void qcom_glink_rx_advance(struct qcom_glink *glink, size_t count)
@@ -808,7 +808,7 @@ static int qcom_glink_rx_defer(struct qcom_glink *glink, size_t extra)
808808

809809
INIT_LIST_HEAD(&dcmd->node);
810810

811-
qcom_glink_rx_peak(glink, &dcmd->msg, 0, sizeof(dcmd->msg) + extra);
811+
qcom_glink_rx_peek(glink, &dcmd->msg, 0, sizeof(dcmd->msg) + extra);
812812

813813
spin_lock(&glink->rx_lock);
814814
list_add_tail(&dcmd->node, &glink->rx_queue);
@@ -841,7 +841,7 @@ static int qcom_glink_rx_data(struct qcom_glink *glink, size_t avail)
841841
return -EAGAIN;
842842
}
843843

844-
qcom_glink_rx_peak(glink, &hdr, 0, sizeof(hdr));
844+
qcom_glink_rx_peek(glink, &hdr, 0, sizeof(hdr));
845845
chunk_size = le32_to_cpu(hdr.chunk_size);
846846
left_size = le32_to_cpu(hdr.left_size);
847847

@@ -906,7 +906,7 @@ static int qcom_glink_rx_data(struct qcom_glink *glink, size_t avail)
906906
goto advance_rx;
907907
}
908908

909-
qcom_glink_rx_peak(glink, intent->data + intent->offset,
909+
qcom_glink_rx_peek(glink, intent->data + intent->offset,
910910
sizeof(hdr), chunk_size);
911911
intent->offset += chunk_size;
912912

@@ -973,7 +973,7 @@ static void qcom_glink_handle_intent(struct qcom_glink *glink,
973973
if (!msg)
974974
return;
975975

976-
qcom_glink_rx_peak(glink, msg, 0, msglen);
976+
qcom_glink_rx_peek(glink, msg, 0, msglen);
977977

978978
for (i = 0; i < count; ++i) {
979979
intent = kzalloc(sizeof(*intent), GFP_ATOMIC);
@@ -1030,7 +1030,7 @@ void qcom_glink_native_rx(struct qcom_glink *glink)
10301030
if (avail < sizeof(msg))
10311031
break;
10321032

1033-
qcom_glink_rx_peak(glink, &msg, 0, sizeof(msg));
1033+
qcom_glink_rx_peek(glink, &msg, 0, sizeof(msg));
10341034

10351035
cmd = le16_to_cpu(msg.cmd);
10361036
param1 = le16_to_cpu(msg.param1);

drivers/rpmsg/qcom_glink_native.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct qcom_glink_pipe {
1717

1818
size_t (*avail)(struct qcom_glink_pipe *glink_pipe);
1919

20-
void (*peak)(struct qcom_glink_pipe *glink_pipe, void *data,
20+
void (*peek)(struct qcom_glink_pipe *glink_pipe, void *data,
2121
unsigned int offset, size_t count);
2222
void (*advance)(struct qcom_glink_pipe *glink_pipe, size_t count);
2323

drivers/rpmsg/qcom_glink_rpm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static size_t glink_rpm_rx_avail(struct qcom_glink_pipe *glink_pipe)
8181
return head - tail;
8282
}
8383

84-
static void glink_rpm_rx_peak(struct qcom_glink_pipe *glink_pipe,
84+
static void glink_rpm_rx_peek(struct qcom_glink_pipe *glink_pipe,
8585
void *data, unsigned int offset, size_t count)
8686
{
8787
struct glink_rpm_pipe *pipe = to_rpm_pipe(glink_pipe);
@@ -333,7 +333,7 @@ static int glink_rpm_probe(struct platform_device *pdev)
333333

334334
/* Pipe specific accessors */
335335
rpm->rx_pipe.native.avail = glink_rpm_rx_avail;
336-
rpm->rx_pipe.native.peak = glink_rpm_rx_peak;
336+
rpm->rx_pipe.native.peek = glink_rpm_rx_peek;
337337
rpm->rx_pipe.native.advance = glink_rpm_rx_advance;
338338
rpm->tx_pipe.native.avail = glink_rpm_tx_avail;
339339
rpm->tx_pipe.native.write = glink_rpm_tx_write;

drivers/rpmsg/qcom_glink_smem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static size_t glink_smem_rx_avail(struct qcom_glink_pipe *np)
9191
return head - tail;
9292
}
9393

94-
static void glink_smem_rx_peak(struct qcom_glink_pipe *np,
94+
static void glink_smem_rx_peek(struct qcom_glink_pipe *np,
9595
void *data, unsigned int offset, size_t count)
9696
{
9797
struct glink_smem_pipe *pipe = to_smem_pipe(np);
@@ -324,7 +324,7 @@ struct qcom_glink_smem *qcom_glink_smem_register(struct device *parent,
324324

325325
rx_pipe->smem = smem;
326326
rx_pipe->native.avail = glink_smem_rx_avail;
327-
rx_pipe->native.peak = glink_smem_rx_peak;
327+
rx_pipe->native.peek = glink_smem_rx_peek;
328328
rx_pipe->native.advance = glink_smem_rx_advance;
329329

330330
tx_pipe->smem = smem;

0 commit comments

Comments
 (0)