Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 14c92049 authored by Ayush Singh's avatar Ayush Singh
Browse files

Cleanup


- Remove unused bits

Signed-off-by: default avatarAyush Singh <ayushdevel1325@gmail.com>
parent 0aafd128
Branches
1 merge request!4WIP: Make cc1352 greybus node
Pipeline #9177 passed with stage
in 1 minute and 13 seconds
......@@ -7,7 +7,6 @@
#define _GREYBUS_MESSAGES_H_
#include <zephyr/types.h>
#include <zephyr/sys/dlist.h>
#include <zephyr/sys/byteorder.h>
#include "greybus_protocol.h"
#include <string.h>
......@@ -15,14 +14,11 @@
/*
* Struct to represent greybus message. This is a variable sized type.
*
* @param fifo_reserved: reserved for fifo
* @param header: greybus msg header.
* @param payload_size: size of payload in bytes
* @param payload: heap allocated payload.
*/
struct gb_message {
void *fifo_reserved;
sys_dnode_t node;
struct gb_operation_msg_hdr header;
uint8_t payload[];
};
......
......@@ -40,7 +40,6 @@ struct gb_message *gb_message_alloc(size_t payload_len, uint8_t message_type, ui
msg->header.id = operation_id;
msg->header.type = message_type;
msg->header.status = status;
sys_dnode_init(&msg->node);
return msg;
}
......
......@@ -393,7 +393,7 @@ static void svc_module_removed_response_handler(struct gb_message *msg)
static void gb_handle_msg(struct gb_message *msg)
{
switch (msg->header.type) {
switch (gb_message_type(msg)) {
case GB_SVC_TYPE_INTF_DEVICE_ID_REQUEST:
case GB_SVC_TYPE_ROUTE_CREATE_REQUEST:
case GB_SVC_TYPE_ROUTE_DESTROY_REQUEST:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment