{
int written;
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
if (elm->uart_side_failure)
return;
*/
static void elm327_kick_into_cmd_mode(struct elmcan *elm)
{
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
if (elm->state != ELM327_STATE_GETDUMMYCHAR &&
elm->state != ELM327_STATE_GETPROMPT) {
/* Schedule a CAN frame and necessary config changes to be sent to the TTY. */
static void elm327_send_frame(struct elmcan *elm, struct can_frame *frame)
{
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
/* Schedule any necessary changes in ELM327's CAN configuration */
if (elm->can_frame_to_send.can_id != frame->can_id) {
static void elm327_init(struct elmcan *elm)
{
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
elm->state = ELM327_STATE_NOTINIT;
elm->can_frame_to_send.can_id = 0x7df; /* ELM327 HW default */
static void elm327_feed_frame_to_netdev(struct elmcan *elm,
struct sk_buff *skb)
{
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
if (!netif_running(elm->dev))
return;
struct can_frame *frame;
struct sk_buff *skb;
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
elm->uart_side_failure = true;
struct can_frame *frame;
struct sk_buff *skb;
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
skb = alloc_can_err_skb(elm->dev, &frame);
if (!skb)
int datastart;
int i;
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
skb = alloc_can_skb(elm->dev, &frame);
if (!skb)
static void elm327_parse_line(struct elmcan *elm, size_t len)
{
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
/* Skip empty lines */
if (!len)
*/
char local_txbuf[sizeof("0102030405060708\r")];
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
if (!elm->cmds_todo) {
/* Enter CAN monitor mode */
static void elm327_drop_bytes(struct elmcan *elm, size_t i)
{
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
memmove(&elm->rxbuf[0], &elm->rxbuf[i], ELM327_SIZE_RXBUF - i);
elm->rxfill -= i;
size_t len;
int i;
- lockdep_assert_held(elm->lock);
+ lockdep_assert_held(&elm->lock);
switch (elm->state) {
case ELM327_STATE_NOTINIT: